Plugin Directory

Changeset 3404073


Ignore:
Timestamp:
11/27/2025 12:24:51 PM (4 months ago)
Author:
flexcubed
Message:

Refactor sanitization callbacks for API key and secret key to trim whitespace

Location:
pitchprint
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • pitchprint/tags/11.1.2/functions/admin/settings.php

    r3286188 r3404073  
    4747    // Register settings with sanitization callbacks
    4848    register_setting('pitchprint', 'ppa_api_key', [
    49         'sanitize_callback' => 'sanitize_text_field'
     49        'sanitize_callback' => function($value) {
     50            return trim($value);
     51        }
    5052    ]);
    5153    register_setting('pitchprint', 'ppa_secret_key', [
    52         'sanitize_callback' => 'sanitize_text_field'
     54        'sanitize_callback' => function($value) {
     55            return trim($value);
     56        }
    5357    ]);
    5458    register_setting('pitchprint', 'ppa_cat_customize', [
  • pitchprint/tags/11.1.2/pitchprint.php

    r3391719 r3404073  
    66*   Description:            A beautiful web based print customization app for your online store. Integrates with WooCommerce.
    77*   Author:                 PitchPrint, Inc.
    8 *   Version:                11.1.1
     8*   Version:                11.1.2
    99*   Author URI:             https://pitchprint.com
    1010*   Requires at least:      3.8
     
    4747             *  @var string
    4848            */
    49             public $version = '11.1.1';
     49            public $version = '11.1.2';
    5050
    5151            /**
  • pitchprint/tags/11.1.2/readme.txt

    r3391719 r3404073  
    44Requires at least: 3.8
    55Tested up to: 6.8
    6 Stable tag: 11.1.1
     6Stable tag: 11.1.2
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    172172
    173173== Changelog ==
     174
     175== 11.1.2 =
     176Minor fix to Refactor sanitization callbacks for API key and secret key to only trim whitespace
    174177
    175178== 11.1.1 =
  • pitchprint/trunk/functions/admin/settings.php

    r3286188 r3404073  
    4747    // Register settings with sanitization callbacks
    4848    register_setting('pitchprint', 'ppa_api_key', [
    49         'sanitize_callback' => 'sanitize_text_field'
     49        'sanitize_callback' => function($value) {
     50            return trim($value);
     51        }
    5052    ]);
    5153    register_setting('pitchprint', 'ppa_secret_key', [
    52         'sanitize_callback' => 'sanitize_text_field'
     54        'sanitize_callback' => function($value) {
     55            return trim($value);
     56        }
    5357    ]);
    5458    register_setting('pitchprint', 'ppa_cat_customize', [
  • pitchprint/trunk/pitchprint.php

    r3391719 r3404073  
    66*   Description:            A beautiful web based print customization app for your online store. Integrates with WooCommerce.
    77*   Author:                 PitchPrint, Inc.
    8 *   Version:                11.1.1
     8*   Version:                11.1.2
    99*   Author URI:             https://pitchprint.com
    1010*   Requires at least:      3.8
     
    4747             *  @var string
    4848            */
    49             public $version = '11.1.1';
     49            public $version = '11.1.2';
    5050
    5151            /**
  • pitchprint/trunk/readme.txt

    r3391719 r3404073  
    44Requires at least: 3.8
    55Tested up to: 6.8
    6 Stable tag: 11.1.1
     6Stable tag: 11.1.2
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    172172
    173173== Changelog ==
     174
     175== 11.1.2 =
     176Minor fix to Refactor sanitization callbacks for API key and secret key to only trim whitespace
    174177
    175178== 11.1.1 =
Note: See TracChangeset for help on using the changeset viewer.