Changeset 3262224
- Timestamp:
- 03/26/2025 01:29:51 PM (12 months ago)
- Location:
- wallkit
- Files:
-
- 8 edited
- 1 copied
-
tags/3.4.4 (copied) (copied from wallkit/trunk)
-
tags/3.4.4/admin/class-wallkit-wp-admin.php (modified) (1 diff)
-
tags/3.4.4/includes/class-wallkit-wp-templates.php (modified) (5 diffs)
-
tags/3.4.4/readme.txt (modified) (1 diff)
-
tags/3.4.4/wallkit-wp.php (modified) (2 diffs)
-
trunk/admin/class-wallkit-wp-admin.php (modified) (1 diff)
-
trunk/includes/class-wallkit-wp-templates.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/wallkit-wp.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wallkit/tags/3.4.4/admin/class-wallkit-wp-admin.php
r3223654 r3262224 824 824 load_plugin_textdomain( 'wallkit', false, '/wallkit/languages' ); 825 825 826 if(defined( 'DOING_CRON' ) && DOING_CRON ){827 828 }829 else830 {831 $wk_action = filter_input( INPUT_GET, 'wk-action', FILTER_SANITIZE_STRING);832 }833 834 835 836 826 } 837 827 -
wallkit/tags/3.4.4/includes/class-wallkit-wp-templates.php
r3058402 r3262224 117 117 } 118 118 119 private function filter_string_polyfill(string $string): string 120 { 121 $str = preg_replace('/\x00|<[^>]*>?/', '', $string); 122 return str_replace(["'", '"'], [''', '"'], $str); 123 } 124 119 125 /** 120 126 * main setup plugin. api keys, settings 121 127 */ 122 128 public function wallkit_setup_page() { 129 130 $stringValidationOptions = array( 131 'filter' => FILTER_CALLBACK, 132 'options' => function ($value) { 133 return $this->filter_string_polyfill($value); 134 }, 135 ); 123 136 124 137 if(wp_verify_nonce( isset($_REQUEST['wpnonce']) ? $_REQUEST['wpnonce'] : null, 'wk-nonce' ) && $_POST && is_admin()) { 125 138 $args = [ 126 139 "wk_is_active" => FILTER_VALIDATE_INT, 127 "wk_server" => FILTER_SANITIZE_STRING,128 "wk_wilmode" => FILTER_SANITIZE_STRING,140 "wk_server" => $stringValidationOptions, 141 "wk_wilmode" => $stringValidationOptions, 129 142 "wk_debug" => FILTER_VALIDATE_INT, 130 "wk_r_key" => FILTER_SANITIZE_STRING,131 "wk_rs_key" => FILTER_SANITIZE_STRING,143 "wk_r_key" => $stringValidationOptions, 144 "wk_rs_key" => $stringValidationOptions, 132 145 "wk_is_auto_sync" => FILTER_VALIDATE_INT, 133 146 "wk_check_taxonomies_sync" => array( … … 144 157 "wk_show_blur" => FILTER_VALIDATE_INT, 145 158 "wk_paywall_display_type"=> FILTER_VALIDATE_INT, 146 "wk_content_key_prefix" => FILTER_SANITIZE_STRING,147 "wk_content_class_selector"=> FILTER_SANITIZE_STRING,148 "wk_custom_content_selector"=> FILTER_SANITIZE_STRING,159 "wk_content_key_prefix" => $stringValidationOptions, 160 "wk_content_class_selector"=> $stringValidationOptions, 161 "wk_custom_content_selector"=> $stringValidationOptions, 149 162 "wk_custom_integration" => FILTER_VALIDATE_INT, 150 163 "wk_analytics" => FILTER_VALIDATE_INT, … … 157 170 "wk_calls_use" => FILTER_VALIDATE_INT, 158 171 "wk_calls_debug" => FILTER_VALIDATE_INT, 159 "wk_calls_handle_click" => FILTER_SANITIZE_STRING,160 "wk_calls_users_status" => FILTER_SANITIZE_STRING,172 "wk_calls_handle_click" => $stringValidationOptions, 173 "wk_calls_users_status" => $stringValidationOptions, 161 174 "wk_calls_users_status_body" => FILTER_VALIDATE_INT, 162 "wk_calls_users_plans" => FILTER_SANITIZE_STRING,175 "wk_calls_users_plans" => $stringValidationOptions, 163 176 "wk_calls_users_plans_body" => FILTER_VALIDATE_INT, 164 "wk_calls_users_events" => FILTER_SANITIZE_STRING,177 "wk_calls_users_events" => $stringValidationOptions, 165 178 "wk_calls_users_events_body" => FILTER_VALIDATE_INT, 166 179 "wk_additional_script_place" => FILTER_VALIDATE_INT, … … 205 218 */ 206 219 public function wallkit_advanced_page() { 220 221 $stringValidationOptions = array( 222 'filter' => FILTER_CALLBACK, 223 'options' => function ($value) { 224 return $this->filter_string_polyfill($value); 225 }, 226 ); 207 227 208 228 if(wp_verify_nonce( isset($_REQUEST['wpnonce']) ? $_REQUEST['wpnonce'] : null, 'wk-nonce' ) && $_POST && is_admin()) { … … 210 230 "wk_auth_migrated_users" => FILTER_VALIDATE_INT, 211 231 "wk_auth_allow_empty_pass" => FILTER_VALIDATE_INT, 212 "wk_modals_inline_selector" => FILTER_SANITIZE_STRING,213 "wk_my_account_page_url" => FILTER_SANITIZE_STRING,232 "wk_modals_inline_selector" => $stringValidationOptions, 233 "wk_my_account_page_url" => $stringValidationOptions, 214 234 ]; 215 235 -
wallkit/tags/3.4.4/readme.txt
r3230632 r3262224 28 28 == Changelog == 29 29 30 = 3.4.4 = 31 *Release Date - 26 March 2025* 32 33 #### Updates including: 34 - Update deprecated php variables. 35 30 36 = 3.4.3 = 31 37 *Release Date - 28 January 2025* -
wallkit/tags/3.4.4/wallkit-wp.php
r3230632 r3262224 10 10 * Plugin URI: https://wallkit.net 11 11 * Description: A Plug & Play paid-content system to manage subscribers, gather fees and drive additional content sales. 12 * Version: 3.4. 312 * Version: 3.4.4 13 13 * Author: Wallkit <dev@wallkit.net> 14 14 * Author URI: https://wallkit.net/ … … 27 27 * Rename this for your plugin and update it as you release new versions. 28 28 */ 29 define( 'WPWKP_VERSION', '3.4. 3' );29 define( 'WPWKP_VERSION', '3.4.4' ); 30 30 31 31 /** -
wallkit/trunk/admin/class-wallkit-wp-admin.php
r3223654 r3262224 824 824 load_plugin_textdomain( 'wallkit', false, '/wallkit/languages' ); 825 825 826 if(defined( 'DOING_CRON' ) && DOING_CRON ){827 828 }829 else830 {831 $wk_action = filter_input( INPUT_GET, 'wk-action', FILTER_SANITIZE_STRING);832 }833 834 835 836 826 } 837 827 -
wallkit/trunk/includes/class-wallkit-wp-templates.php
r3058402 r3262224 117 117 } 118 118 119 private function filter_string_polyfill(string $string): string 120 { 121 $str = preg_replace('/\x00|<[^>]*>?/', '', $string); 122 return str_replace(["'", '"'], [''', '"'], $str); 123 } 124 119 125 /** 120 126 * main setup plugin. api keys, settings 121 127 */ 122 128 public function wallkit_setup_page() { 129 130 $stringValidationOptions = array( 131 'filter' => FILTER_CALLBACK, 132 'options' => function ($value) { 133 return $this->filter_string_polyfill($value); 134 }, 135 ); 123 136 124 137 if(wp_verify_nonce( isset($_REQUEST['wpnonce']) ? $_REQUEST['wpnonce'] : null, 'wk-nonce' ) && $_POST && is_admin()) { 125 138 $args = [ 126 139 "wk_is_active" => FILTER_VALIDATE_INT, 127 "wk_server" => FILTER_SANITIZE_STRING,128 "wk_wilmode" => FILTER_SANITIZE_STRING,140 "wk_server" => $stringValidationOptions, 141 "wk_wilmode" => $stringValidationOptions, 129 142 "wk_debug" => FILTER_VALIDATE_INT, 130 "wk_r_key" => FILTER_SANITIZE_STRING,131 "wk_rs_key" => FILTER_SANITIZE_STRING,143 "wk_r_key" => $stringValidationOptions, 144 "wk_rs_key" => $stringValidationOptions, 132 145 "wk_is_auto_sync" => FILTER_VALIDATE_INT, 133 146 "wk_check_taxonomies_sync" => array( … … 144 157 "wk_show_blur" => FILTER_VALIDATE_INT, 145 158 "wk_paywall_display_type"=> FILTER_VALIDATE_INT, 146 "wk_content_key_prefix" => FILTER_SANITIZE_STRING,147 "wk_content_class_selector"=> FILTER_SANITIZE_STRING,148 "wk_custom_content_selector"=> FILTER_SANITIZE_STRING,159 "wk_content_key_prefix" => $stringValidationOptions, 160 "wk_content_class_selector"=> $stringValidationOptions, 161 "wk_custom_content_selector"=> $stringValidationOptions, 149 162 "wk_custom_integration" => FILTER_VALIDATE_INT, 150 163 "wk_analytics" => FILTER_VALIDATE_INT, … … 157 170 "wk_calls_use" => FILTER_VALIDATE_INT, 158 171 "wk_calls_debug" => FILTER_VALIDATE_INT, 159 "wk_calls_handle_click" => FILTER_SANITIZE_STRING,160 "wk_calls_users_status" => FILTER_SANITIZE_STRING,172 "wk_calls_handle_click" => $stringValidationOptions, 173 "wk_calls_users_status" => $stringValidationOptions, 161 174 "wk_calls_users_status_body" => FILTER_VALIDATE_INT, 162 "wk_calls_users_plans" => FILTER_SANITIZE_STRING,175 "wk_calls_users_plans" => $stringValidationOptions, 163 176 "wk_calls_users_plans_body" => FILTER_VALIDATE_INT, 164 "wk_calls_users_events" => FILTER_SANITIZE_STRING,177 "wk_calls_users_events" => $stringValidationOptions, 165 178 "wk_calls_users_events_body" => FILTER_VALIDATE_INT, 166 179 "wk_additional_script_place" => FILTER_VALIDATE_INT, … … 205 218 */ 206 219 public function wallkit_advanced_page() { 220 221 $stringValidationOptions = array( 222 'filter' => FILTER_CALLBACK, 223 'options' => function ($value) { 224 return $this->filter_string_polyfill($value); 225 }, 226 ); 207 227 208 228 if(wp_verify_nonce( isset($_REQUEST['wpnonce']) ? $_REQUEST['wpnonce'] : null, 'wk-nonce' ) && $_POST && is_admin()) { … … 210 230 "wk_auth_migrated_users" => FILTER_VALIDATE_INT, 211 231 "wk_auth_allow_empty_pass" => FILTER_VALIDATE_INT, 212 "wk_modals_inline_selector" => FILTER_SANITIZE_STRING,213 "wk_my_account_page_url" => FILTER_SANITIZE_STRING,232 "wk_modals_inline_selector" => $stringValidationOptions, 233 "wk_my_account_page_url" => $stringValidationOptions, 214 234 ]; 215 235 -
wallkit/trunk/readme.txt
r3230632 r3262224 28 28 == Changelog == 29 29 30 = 3.4.4 = 31 *Release Date - 26 March 2025* 32 33 #### Updates including: 34 - Update deprecated php variables. 35 30 36 = 3.4.3 = 31 37 *Release Date - 28 January 2025* -
wallkit/trunk/wallkit-wp.php
r3230632 r3262224 10 10 * Plugin URI: https://wallkit.net 11 11 * Description: A Plug & Play paid-content system to manage subscribers, gather fees and drive additional content sales. 12 * Version: 3.4. 312 * Version: 3.4.4 13 13 * Author: Wallkit <dev@wallkit.net> 14 14 * Author URI: https://wallkit.net/ … … 27 27 * Rename this for your plugin and update it as you release new versions. 28 28 */ 29 define( 'WPWKP_VERSION', '3.4. 3' );29 define( 'WPWKP_VERSION', '3.4.4' ); 30 30 31 31 /**
Note: See TracChangeset
for help on using the changeset viewer.