Plugin Directory

Changeset 3262224


Ignore:
Timestamp:
03/26/2025 01:29:51 PM (12 months ago)
Author:
wallkit
Message:

tagging version 3.4.4

Location:
wallkit
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wallkit/tags/3.4.4/admin/class-wallkit-wp-admin.php

    r3223654 r3262224  
    824824        load_plugin_textdomain( 'wallkit', false, '/wallkit/languages' );
    825825
    826         if(defined( 'DOING_CRON' ) && DOING_CRON ){
    827 
    828         }
    829         else
    830         {
    831             $wk_action = filter_input( INPUT_GET, 'wk-action', FILTER_SANITIZE_STRING);
    832         }
    833 
    834 
    835 
    836826    }
    837827
  • wallkit/tags/3.4.4/includes/class-wallkit-wp-templates.php

    r3058402 r3262224  
    117117    }
    118118
     119    private function filter_string_polyfill(string $string): string
     120    {
     121        $str = preg_replace('/\x00|<[^>]*>?/', '', $string);
     122        return str_replace(["'", '"'], ['&#39;', '&#34;'], $str);
     123    }
     124
    119125    /**
    120126     * main setup plugin. api keys, settings
    121127     */
    122128    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        );
    123136
    124137        if(wp_verify_nonce( isset($_REQUEST['wpnonce']) ? $_REQUEST['wpnonce'] : null, 'wk-nonce' ) && $_POST && is_admin()) {
    125138            $args = [
    126139                "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,
    129142                "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,
    132145                "wk_is_auto_sync"       => FILTER_VALIDATE_INT,
    133146                "wk_check_taxonomies_sync"  => array(
     
    144157                "wk_show_blur"          => FILTER_VALIDATE_INT,
    145158                "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,
    149162                "wk_custom_integration" => FILTER_VALIDATE_INT,
    150163                "wk_analytics"          => FILTER_VALIDATE_INT,
     
    157170                "wk_calls_use"          => FILTER_VALIDATE_INT,
    158171                "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,
    161174                "wk_calls_users_status_body" => FILTER_VALIDATE_INT,
    162                 "wk_calls_users_plans"  => FILTER_SANITIZE_STRING,
     175                "wk_calls_users_plans"  => $stringValidationOptions,
    163176                "wk_calls_users_plans_body"  => FILTER_VALIDATE_INT,
    164                 "wk_calls_users_events" => FILTER_SANITIZE_STRING,
     177                "wk_calls_users_events" => $stringValidationOptions,
    165178                "wk_calls_users_events_body" => FILTER_VALIDATE_INT,
    166179                "wk_additional_script_place" => FILTER_VALIDATE_INT,
     
    205218     */
    206219    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        );
    207227
    208228        if(wp_verify_nonce( isset($_REQUEST['wpnonce']) ? $_REQUEST['wpnonce'] : null, 'wk-nonce' ) && $_POST && is_admin()) {
     
    210230                "wk_auth_migrated_users"         => FILTER_VALIDATE_INT,
    211231                "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,
    214234            ];
    215235
  • wallkit/tags/3.4.4/readme.txt

    r3230632 r3262224  
    2828== Changelog ==
    2929
     30= 3.4.4 =
     31*Release Date - 26 March 2025*
     32
     33#### Updates including:
     34- Update deprecated php variables.
     35
    3036= 3.4.3 =
    3137*Release Date - 28 January 2025*
  • wallkit/tags/3.4.4/wallkit-wp.php

    r3230632 r3262224  
    1010 * Plugin URI:        https://wallkit.net
    1111 * Description:       A Plug & Play paid-content system to manage subscribers, gather fees and drive additional content sales.
    12  * Version:           3.4.3
     12 * Version:           3.4.4
    1313 * Author:            Wallkit <dev@wallkit.net>
    1414 * Author URI:        https://wallkit.net/
     
    2727 * Rename this for your plugin and update it as you release new versions.
    2828 */
    29 define( 'WPWKP_VERSION', '3.4.3' );
     29define( 'WPWKP_VERSION', '3.4.4' );
    3030
    3131/**
  • wallkit/trunk/admin/class-wallkit-wp-admin.php

    r3223654 r3262224  
    824824        load_plugin_textdomain( 'wallkit', false, '/wallkit/languages' );
    825825
    826         if(defined( 'DOING_CRON' ) && DOING_CRON ){
    827 
    828         }
    829         else
    830         {
    831             $wk_action = filter_input( INPUT_GET, 'wk-action', FILTER_SANITIZE_STRING);
    832         }
    833 
    834 
    835 
    836826    }
    837827
  • wallkit/trunk/includes/class-wallkit-wp-templates.php

    r3058402 r3262224  
    117117    }
    118118
     119    private function filter_string_polyfill(string $string): string
     120    {
     121        $str = preg_replace('/\x00|<[^>]*>?/', '', $string);
     122        return str_replace(["'", '"'], ['&#39;', '&#34;'], $str);
     123    }
     124
    119125    /**
    120126     * main setup plugin. api keys, settings
    121127     */
    122128    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        );
    123136
    124137        if(wp_verify_nonce( isset($_REQUEST['wpnonce']) ? $_REQUEST['wpnonce'] : null, 'wk-nonce' ) && $_POST && is_admin()) {
    125138            $args = [
    126139                "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,
    129142                "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,
    132145                "wk_is_auto_sync"       => FILTER_VALIDATE_INT,
    133146                "wk_check_taxonomies_sync"  => array(
     
    144157                "wk_show_blur"          => FILTER_VALIDATE_INT,
    145158                "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,
    149162                "wk_custom_integration" => FILTER_VALIDATE_INT,
    150163                "wk_analytics"          => FILTER_VALIDATE_INT,
     
    157170                "wk_calls_use"          => FILTER_VALIDATE_INT,
    158171                "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,
    161174                "wk_calls_users_status_body" => FILTER_VALIDATE_INT,
    162                 "wk_calls_users_plans"  => FILTER_SANITIZE_STRING,
     175                "wk_calls_users_plans"  => $stringValidationOptions,
    163176                "wk_calls_users_plans_body"  => FILTER_VALIDATE_INT,
    164                 "wk_calls_users_events" => FILTER_SANITIZE_STRING,
     177                "wk_calls_users_events" => $stringValidationOptions,
    165178                "wk_calls_users_events_body" => FILTER_VALIDATE_INT,
    166179                "wk_additional_script_place" => FILTER_VALIDATE_INT,
     
    205218     */
    206219    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        );
    207227
    208228        if(wp_verify_nonce( isset($_REQUEST['wpnonce']) ? $_REQUEST['wpnonce'] : null, 'wk-nonce' ) && $_POST && is_admin()) {
     
    210230                "wk_auth_migrated_users"         => FILTER_VALIDATE_INT,
    211231                "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,
    214234            ];
    215235
  • wallkit/trunk/readme.txt

    r3230632 r3262224  
    2828== Changelog ==
    2929
     30= 3.4.4 =
     31*Release Date - 26 March 2025*
     32
     33#### Updates including:
     34- Update deprecated php variables.
     35
    3036= 3.4.3 =
    3137*Release Date - 28 January 2025*
  • wallkit/trunk/wallkit-wp.php

    r3230632 r3262224  
    1010 * Plugin URI:        https://wallkit.net
    1111 * Description:       A Plug & Play paid-content system to manage subscribers, gather fees and drive additional content sales.
    12  * Version:           3.4.3
     12 * Version:           3.4.4
    1313 * Author:            Wallkit <dev@wallkit.net>
    1414 * Author URI:        https://wallkit.net/
     
    2727 * Rename this for your plugin and update it as you release new versions.
    2828 */
    29 define( 'WPWKP_VERSION', '3.4.3' );
     29define( 'WPWKP_VERSION', '3.4.4' );
    3030
    3131/**
Note: See TracChangeset for help on using the changeset viewer.