Skip to content

Commit 3f67466

Browse files
authored
Merge pull request #26 from codebard/2.2.5
2.2.5
2 parents 8e3855b + 8e8775f commit 3f67466

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed

index.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin Name: CodeBard's Patron Button and Widgets for Patreon
44
Plugin URI: https://wordpress.org/plugins/patron-button-and-widgets-by-codebard/
55
Description: Patreon Patron Buttons, Widgets and Patreon Functions
6-
Version: 2.2.4
6+
Version: 2.2.5
77
Author: CodeBard
88
Author URI: https://codebard.com
99
Text Domain: cb_p6
@@ -66,7 +66,7 @@ private function __construct()
6666

6767
if(isset($_REQUEST[$this->internal['prefix'].'action'] ))
6868
{
69-
$this->internal['requested_action'] = filter_var( $_REQUEST[$this->internal['prefix'].'action'], FILTER_SANITIZE_STRING);
69+
$this->internal['requested_action'] = preg_replace('/[^\w-]/', '', $_REQUEST[$this->internal['prefix'].'action']);
7070
}
7171
else
7272
{
@@ -693,7 +693,7 @@ public function do_admin_page_tabs_c()
693693

694694
if(isset($_REQUEST[$this->internal['prefix'].'tab']))
695695
{
696-
$tab = filter_var( $_REQUEST[$this->internal['prefix'].'tab'], FILTER_SANITIZE_STRING ) ;
696+
$tab = preg_replace('/[^\w-]/', '', $_REQUEST[$this->internal['prefix'].'tab']) ;
697697
}
698698

699699
if(!isset($tab))
@@ -813,7 +813,7 @@ public function do_settings_pages_c($v1)
813813

814814
if(isset($_REQUEST[$this->internal['prefix'] . 'tab']))
815815
{
816-
$tab = filter_var( $_REQUEST[$this->internal['prefix'].'tab'], FILTER_SANITIZE_STRING );
816+
$tab = preg_replace('/[^\w-]/', '', $_REQUEST[$this->internal['prefix'].'tab']);
817817
}
818818
else
819819
{
@@ -862,7 +862,7 @@ public function do_admin_settings_form_header_c()
862862

863863
if(isset($_REQUEST[$this->internal['prefix'] . 'tab']))
864864
{
865-
$tab = filter_var( $_REQUEST[$this->internal['prefix'] . 'tab'], FILTER_SANITIZE_STRING );
865+
$tab = preg_replace('/[^\w-]/', '', $_REQUEST[$this->internal['prefix'] . 'tab'] );
866866

867867
}
868868
else
@@ -891,7 +891,7 @@ public function do_admin_settings_form_footer_c()
891891

892892
if(isset($_REQUEST['tab']))
893893
{
894-
$tab = filter_var( $_REQUEST['tab'], FILTER_SANITIZE_STRING );
894+
$tab = preg_replace('/[^\w-]/', '', $_REQUEST['tab'] );
895895

896896
}
897897
else

plugin/includes/default_internal_vars.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
'id' => 'cb_p6',
1111
'plugin_id' => 'patron-button-and-widgets-by-codebard',
1212
'prefix' => 'cb_p6_',
13-
'version' => '2.2.4',
13+
'version' => '2.2.5',
1414
'plugin_name' => 'CodeBard\'s Patron Button and Widgets for Patreon',
1515

1616
'callable_from_request' => array(

readme.txt

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Donate link: http://codebard.com/donate
66
Tags: patreon, widgets, crowdfunding, donations, social
77
License: GPL
88
Requires at least: 4.0
9-
Tested up to: 6.8.2
10-
Stable Tag: 2.2.4
9+
Tested up to: 6.8.3
10+
Stable Tag: 2.2.5
1111

1212
Add Patreon buttons to your content and sidebars. Upgrade to Patron Plugin Pro for patron-only posts and powerful features.
1313

@@ -62,6 +62,10 @@ You can report security bugs through the Patchstack Vulnerability Disclosure Pro
6262

6363
== Upgrade Notice ==
6464

65+
= 2.2.5 =
66+
67+
* Addressed some PHP warnings
68+
6569
= 2.2.4 =
6670

6771
* Removed unused updater code
@@ -221,6 +225,10 @@ You can report security bugs through the Patchstack Vulnerability Disclosure Pro
221225

222226
== Changelog ==
223227

228+
= 2.2.5 =
229+
230+
* Addressed some PHP warnings
231+
224232
= 2.2.4 =
225233

226234
* Removed unused updater code

0 commit comments

Comments
 (0)