Plugin Directory

Changeset 3416910 for anrghg


Ignore:
Timestamp:
12/11/2025 02:26:31 AM (2 months ago)
Author:
anrghg
Message:

1.17.4 (2025-12-11)

  • Paragraph links: Replace deprecated seems_utf8 with wp_is_valid_utf8.
  • Settings: Security: Debug and remove sanitization callback in register_setting().
  • Export: Security: Debug and remove sanitization callback in register_setting().
  • Import: Security: Debug and remove sanitization callback in register_setting().
  • Templates: Security: Debug and remove sanitization callback in register_setting().
  • Conversion: Security: Debug and remove sanitization callback in register_setting().
Location:
anrghg
Files:
20 edited
1 copied

Legend:

Unmodified
Added
Removed
  • anrghg/tags/1.17.4/SVN-log.txt

    r3414896 r3416910  
    3333Past revisions:
    3434
     351.17.3.0       3414896  2025-12-09 04:40:49 +0000 (Tue, 09 Dec 2025)
    35361.17.2.1       3413713  2025-12-07 20:39:30 +0000 (Sun, 07 Dec 2025)
    36371.17.2.0       3389246  2025-11-03 23:27:48 +0000 (Mon, 03 Nov 2025)
  • anrghg/tags/1.17.4/admin/options/convert.php

    r3414896 r3416910  
    309309 *
    310310 * @since 0.24.6
     311 * @since 1.17.4 Debug and remove sanitization callback.
    311312 * @return void
    312313 */
     
    316317        $l_s_option_name  = 'anrghg_convert';
    317318        $l_s_option_group = $l_s_option_name;
    318         register_setting( $l_s_option_group, $l_s_option_name, array( 'anrghg_kses' ) );
     319        register_setting( $l_s_option_group, $l_s_option_name, array() );
    319320        $l_s_section = 'anrghg_conversion';
    320321        add_settings_section(
  • anrghg/tags/1.17.4/admin/options/export.php

    r3414896 r3416910  
    4444 *
    4545 * @since 0.61.5
     46 * @since 1.17.4 Debug and remove sanitization callback.
    4647 * @return void
    4748 */
     
    5152        $l_s_option_name  = 'anrghg_export';
    5253        $l_s_option_group = $l_s_option_name;
    53         register_setting( $l_s_option_group, $l_s_option_name, array( 'anrghg_kses' ) );
     54        register_setting( $l_s_option_group, $l_s_option_name, array() );
    5455        return;
    5556    }
  • anrghg/tags/1.17.4/admin/options/import.php

    r3414896 r3416910  
    4040 *
    4141 * @since 0.61.5
     42 * @since 1.17.4 Debug and remove sanitization callback.
    4243 * @return void
    4344 */
     
    4748        $l_s_option_name  = 'anrghg_import';
    4849        $l_s_option_group = $l_s_option_name;
    49         register_setting( $l_s_option_group, $l_s_option_name, array( 'anrghg_kses' ) );
     50        register_setting( $l_s_option_group, $l_s_option_name, array() );
    5051        return;
    5152    }
  • anrghg/tags/1.17.4/admin/options/settings-sections.php

    r3414896 r3416910  
    4848 * It must also be equal to the page slug defined in `add_{menu|options}_page()`.
    4949 * @link https://wordpress.stackexchange.com/a/316063
     50 *
     51 * @since 1.17.4 Debug and remove sanitization callback.
     52 *
    5053 * @return void
    5154 */
     
    5457    $l_s_option_name  = 'anrghg';
    5558    $l_s_option_group = $l_s_option_name;
    56     register_setting( $l_s_option_group, $l_s_option_name, array( 'anrghg_kses' ) );
     59    register_setting( $l_s_option_group, $l_s_option_name, array() );
    5760
    5861    $l_s_class = 'main';
  • anrghg/tags/1.17.4/admin/options/templates.php

    r3414896 r3416910  
    379379 *
    380380 * @since 0.9.0
     381 * @since 1.17.4 Debug and remove sanitization callback.
    381382 * @return void
    382383 */
     
    386387        $l_s_option_name  = 'anrghg_reuse';
    387388        $l_s_option_group = $l_s_option_name;
    388         register_setting( $l_s_option_group, $l_s_option_name, array( 'anrghg_kses' ) );
     389        register_setting( $l_s_option_group, $l_s_option_name, array() );
    389390        $l_s_section = 'anrghg_reusables';
    390391        add_settings_section(
  • anrghg/tags/1.17.4/anrghg.php

    r3414896 r3416910  
    1212 * Requires PHP: 7.2
    1313 * CAUTION: The following field is parsed in the `Stable Tag` folder for upgrade configuration:
    14  * Version: 1.17.3
     14 * Version: 1.17.4
    1515 * Author: ANRGHG
    1616 * Author URI: https://profiles.wordpress.org/anrghg/
     
    125125 * @var string ANRGHG_S_VER  Plugin version constant.
    126126 */
    127 define( 'ANRGHG_S_VER', '1.17.3' );
     127define( 'ANRGHG_S_VER', '1.17.4' );
    128128
    129129/**
     
    162162 *
    163163 * * Some strings are in sync with WordPress Core, to benefit from any
    164  *   existing translation. This is about 375 strings in 21 files as of
    165  *   version 1.17.2, only considering simple gettext calls, including
    166  *   multiple occurrences, like 'Label', 'Pixels (px)' and 'Not set'.
     164 *   existing translation. This is about 404 strings in 22 files as of
     165 *   version 1.17.3, all calls and multiple occurrences included, like
     166 *   'Label', 'Pixels (px)', `_x( 'Right to left', 'editor button' )`,
     167 *   'Yes', 'Not set', 'Log In', 'Table of contents', 'Save Changes'.
    167168 *
    168169 *   There is a caveat to this, @see link above. But the strings using
    169  *   this synergy are very unlikely to change. Not hitchhiking these
    170  *   would be wasteful and disrespectful against the translators who
    171  *   would need to translate those strings for every single domain, or
    172  *   plugin users would have to wait indefinitely for something that
    173  *   is done since a long time by the translators of WordPress Core.
    174  *
    175  *   The basis for syncing with WordPress Core is in development. Only
    176  *   about half of these strings is shipped with WordPress as of 2022.
    177  *   The other half does not work until a future release.
     170 *   this synergy are very unlikely to change. Should nevertheless any
     171 *   change to these strings occur, this will be no problem. Mirrors
     172 *   in this plugin shall be updated as soon as possible.
     173 *
     174 *   Not hitchhiking these strings would be wasteful and disrespectful
     175 *   to the translators, who would need to translate those strings for
     176 *   this domain especially; or plugin users would wait for something
     177 *   that is done since a long time thanks to the translators working
     178 *   for WordPress Core.
     179 *
     180 *   The basis for syncing with WordPress Core is in development. As
     181 *   of 2022, about half of these strings are shipped. The other half
     182 *   is waiting for a future release.
    178183 *
    179184 * * In order to reduce the translation workload, strings must be lean
     
    181186 *   be achieved programmatically, by genericizing and merging similar
    182187 *   strings.
     188 *
     189 * Alleviate translation workload
     190 * @link https://core.trac.wordpress.org/ticket/56435
    183191 *
    184192 * * 100+ sets of sentences are optionally collapsible or hidden. That
     
    195203 *   by the PHPCS validation tool) below a Translator comment, for the
    196204 *   Gettext utility to not look beyond and not distract Translators.
    197  *
    198  * Alleviate translation workload
    199  * @link https://core.trac.wordpress.org/ticket/56435#ticket
    200205 */
    201206
  • anrghg/tags/1.17.4/includes/modular.php

    r3414896 r3416910  
    10451045    /**
    10461046     * Optionally converts to lowercase before configurable conversions.
     1047     *
     1048     * @since 1.17.4 Replace deprecated `seems_utf8` with `wp_is_valid_utf8`.
     1049     * Function `seems_utf8` is deprecated since WP version 6.9.0
    10471050     */
    10481051    $l_b_titlecase = (bool) anrghg_apply_config( 'anrghg_fragment_ids_support_titlecase' );
    10491052    if ( ! $l_b_titlecase || $p_b_force_lower ) {
    1050         if ( seems_utf8( $p_s_text ) ) {
     1053        if ( wp_is_valid_utf8( $p_s_text ) ) {
    10511054            if ( function_exists( 'mb_strtolower' ) ) {
    10521055                $p_s_text = mb_strtolower( $p_s_text, 'UTF-8' );
     
    12151218     * @since 0.9.0 The max length is configurable.
    12161219     * @since 1.6.17 Fall back on legacy clean-up, as else the job is done.
    1217      */
    1218     if ( seems_utf8( $p_s_text ) ) {
     1220     * @since 1.17.4 Replace deprecated `seems_utf8` with `wp_is_valid_utf8`.
     1221     * Function `seems_utf8` is deprecated since WP version 6.9.0
     1222     */
     1223    if ( wp_is_valid_utf8( $p_s_text ) ) {
    12191224        $p_s_text = utf8_uri_encode( $p_s_text, intval( $p_i_max_length ) );
    12201225    }
  • anrghg/tags/1.17.4/package.json

    r3414896 r3416910  
    44        "howTo": "This file may be edited in the build folder, See build.txt.",
    55    "name": "anrghg",
    6     "version": "1.17.3",
     6    "version": "1.17.4",
    77    "description": "A.N.R.GHG Publishing Toolkit",
    88    "main": "index.js",
  • anrghg/tags/1.17.4/readme.txt

    r3414896 r3416910  
    88Requires PHP: 7.2
    99Tested PHP up to: 8.1
    10 Package Version: 1.17.3.0
    11 Version: 1.17.3
     10Package Version: 1.17.4.0
     11Version: 1.17.4
    1212CAUTION: The following field is parsed in `trunk/` for release configuration:
    13 Stable Tag: 1.17.3
     13Stable Tag: 1.17.4
    1414License: GPLv2 or later
    1515License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    636636== Changelog ==
    637637
    638 = 1.17.3 (2025-12-09) =
     638= 1.17.4 (2025-12-11) =
     639
     640* Paragraph links: Replace deprecated `seems_utf8` with `wp_is_valid_utf8`.
     641* Settings: Security: Debug and remove sanitization callback in `register_setting()`.
     642* Export: Security: Debug and remove sanitization callback in `register_setting()`.
     643* Import: Security: Debug and remove sanitization callback in `register_setting()`.
     644* Templates: Security: Debug and remove sanitization callback in `register_setting()`.
     645* Conversion: Security: Debug and remove sanitization callback in `register_setting()`.
     646
     647= 1.17.3 (2025-12-09) [3414896](https://plugins.trac.wordpress.org/changeset/3414896/anrghg) =
    639648
    640649* Settings: Security: Add sanitization when calling `register_setting()`.
  • anrghg/trunk/SVN-log.txt

    r3414896 r3416910  
    3333Past revisions:
    3434
     351.17.3.0       3414896  2025-12-09 04:40:49 +0000 (Tue, 09 Dec 2025)
    35361.17.2.1       3413713  2025-12-07 20:39:30 +0000 (Sun, 07 Dec 2025)
    36371.17.2.0       3389246  2025-11-03 23:27:48 +0000 (Mon, 03 Nov 2025)
  • anrghg/trunk/admin/options/convert.php

    r3414896 r3416910  
    309309 *
    310310 * @since 0.24.6
     311 * @since 1.17.4 Debug and remove sanitization callback.
    311312 * @return void
    312313 */
     
    316317        $l_s_option_name  = 'anrghg_convert';
    317318        $l_s_option_group = $l_s_option_name;
    318         register_setting( $l_s_option_group, $l_s_option_name, array( 'anrghg_kses' ) );
     319        register_setting( $l_s_option_group, $l_s_option_name, array() );
    319320        $l_s_section = 'anrghg_conversion';
    320321        add_settings_section(
  • anrghg/trunk/admin/options/export.php

    r3414896 r3416910  
    4444 *
    4545 * @since 0.61.5
     46 * @since 1.17.4 Debug and remove sanitization callback.
    4647 * @return void
    4748 */
     
    5152        $l_s_option_name  = 'anrghg_export';
    5253        $l_s_option_group = $l_s_option_name;
    53         register_setting( $l_s_option_group, $l_s_option_name, array( 'anrghg_kses' ) );
     54        register_setting( $l_s_option_group, $l_s_option_name, array() );
    5455        return;
    5556    }
  • anrghg/trunk/admin/options/import.php

    r3414896 r3416910  
    4040 *
    4141 * @since 0.61.5
     42 * @since 1.17.4 Debug and remove sanitization callback.
    4243 * @return void
    4344 */
     
    4748        $l_s_option_name  = 'anrghg_import';
    4849        $l_s_option_group = $l_s_option_name;
    49         register_setting( $l_s_option_group, $l_s_option_name, array( 'anrghg_kses' ) );
     50        register_setting( $l_s_option_group, $l_s_option_name, array() );
    5051        return;
    5152    }
  • anrghg/trunk/admin/options/settings-sections.php

    r3414896 r3416910  
    4848 * It must also be equal to the page slug defined in `add_{menu|options}_page()`.
    4949 * @link https://wordpress.stackexchange.com/a/316063
     50 *
     51 * @since 1.17.4 Debug and remove sanitization callback.
     52 *
    5053 * @return void
    5154 */
     
    5457    $l_s_option_name  = 'anrghg';
    5558    $l_s_option_group = $l_s_option_name;
    56     register_setting( $l_s_option_group, $l_s_option_name, array( 'anrghg_kses' ) );
     59    register_setting( $l_s_option_group, $l_s_option_name, array() );
    5760
    5861    $l_s_class = 'main';
  • anrghg/trunk/admin/options/templates.php

    r3414896 r3416910  
    379379 *
    380380 * @since 0.9.0
     381 * @since 1.17.4 Debug and remove sanitization callback.
    381382 * @return void
    382383 */
     
    386387        $l_s_option_name  = 'anrghg_reuse';
    387388        $l_s_option_group = $l_s_option_name;
    388         register_setting( $l_s_option_group, $l_s_option_name, array( 'anrghg_kses' ) );
     389        register_setting( $l_s_option_group, $l_s_option_name, array() );
    389390        $l_s_section = 'anrghg_reusables';
    390391        add_settings_section(
  • anrghg/trunk/anrghg.php

    r3414896 r3416910  
    1212 * Requires PHP: 7.2
    1313 * CAUTION: The following field is parsed in the `Stable Tag` folder for upgrade configuration:
    14  * Version: 1.17.3
     14 * Version: 1.17.4
    1515 * Author: ANRGHG
    1616 * Author URI: https://profiles.wordpress.org/anrghg/
     
    125125 * @var string ANRGHG_S_VER  Plugin version constant.
    126126 */
    127 define( 'ANRGHG_S_VER', '1.17.3' );
     127define( 'ANRGHG_S_VER', '1.17.4' );
    128128
    129129/**
     
    162162 *
    163163 * * Some strings are in sync with WordPress Core, to benefit from any
    164  *   existing translation. This is about 375 strings in 21 files as of
    165  *   version 1.17.2, only considering simple gettext calls, including
    166  *   multiple occurrences, like 'Label', 'Pixels (px)' and 'Not set'.
     164 *   existing translation. This is about 404 strings in 22 files as of
     165 *   version 1.17.3, all calls and multiple occurrences included, like
     166 *   'Label', 'Pixels (px)', `_x( 'Right to left', 'editor button' )`,
     167 *   'Yes', 'Not set', 'Log In', 'Table of contents', 'Save Changes'.
    167168 *
    168169 *   There is a caveat to this, @see link above. But the strings using
    169  *   this synergy are very unlikely to change. Not hitchhiking these
    170  *   would be wasteful and disrespectful against the translators who
    171  *   would need to translate those strings for every single domain, or
    172  *   plugin users would have to wait indefinitely for something that
    173  *   is done since a long time by the translators of WordPress Core.
    174  *
    175  *   The basis for syncing with WordPress Core is in development. Only
    176  *   about half of these strings is shipped with WordPress as of 2022.
    177  *   The other half does not work until a future release.
     170 *   this synergy are very unlikely to change. Should nevertheless any
     171 *   change to these strings occur, this will be no problem. Mirrors
     172 *   in this plugin shall be updated as soon as possible.
     173 *
     174 *   Not hitchhiking these strings would be wasteful and disrespectful
     175 *   to the translators, who would need to translate those strings for
     176 *   this domain especially; or plugin users would wait for something
     177 *   that is done since a long time thanks to the translators working
     178 *   for WordPress Core.
     179 *
     180 *   The basis for syncing with WordPress Core is in development. As
     181 *   of 2022, about half of these strings are shipped. The other half
     182 *   is waiting for a future release.
    178183 *
    179184 * * In order to reduce the translation workload, strings must be lean
     
    181186 *   be achieved programmatically, by genericizing and merging similar
    182187 *   strings.
     188 *
     189 * Alleviate translation workload
     190 * @link https://core.trac.wordpress.org/ticket/56435
    183191 *
    184192 * * 100+ sets of sentences are optionally collapsible or hidden. That
     
    195203 *   by the PHPCS validation tool) below a Translator comment, for the
    196204 *   Gettext utility to not look beyond and not distract Translators.
    197  *
    198  * Alleviate translation workload
    199  * @link https://core.trac.wordpress.org/ticket/56435#ticket
    200205 */
    201206
  • anrghg/trunk/includes/modular.php

    r3414896 r3416910  
    10451045    /**
    10461046     * Optionally converts to lowercase before configurable conversions.
     1047     *
     1048     * @since 1.17.4 Replace deprecated `seems_utf8` with `wp_is_valid_utf8`.
     1049     * Function `seems_utf8` is deprecated since WP version 6.9.0
    10471050     */
    10481051    $l_b_titlecase = (bool) anrghg_apply_config( 'anrghg_fragment_ids_support_titlecase' );
    10491052    if ( ! $l_b_titlecase || $p_b_force_lower ) {
    1050         if ( seems_utf8( $p_s_text ) ) {
     1053        if ( wp_is_valid_utf8( $p_s_text ) ) {
    10511054            if ( function_exists( 'mb_strtolower' ) ) {
    10521055                $p_s_text = mb_strtolower( $p_s_text, 'UTF-8' );
     
    12151218     * @since 0.9.0 The max length is configurable.
    12161219     * @since 1.6.17 Fall back on legacy clean-up, as else the job is done.
    1217      */
    1218     if ( seems_utf8( $p_s_text ) ) {
     1220     * @since 1.17.4 Replace deprecated `seems_utf8` with `wp_is_valid_utf8`.
     1221     * Function `seems_utf8` is deprecated since WP version 6.9.0
     1222     */
     1223    if ( wp_is_valid_utf8( $p_s_text ) ) {
    12191224        $p_s_text = utf8_uri_encode( $p_s_text, intval( $p_i_max_length ) );
    12201225    }
  • anrghg/trunk/package.json

    r3414896 r3416910  
    44        "howTo": "This file may be edited in the build folder, See build.txt.",
    55    "name": "anrghg",
    6     "version": "1.17.3",
     6    "version": "1.17.4",
    77    "description": "A.N.R.GHG Publishing Toolkit",
    88    "main": "index.js",
  • anrghg/trunk/readme.txt

    r3414896 r3416910  
    88Requires PHP: 7.2
    99Tested PHP up to: 8.1
    10 Package Version: 1.17.3.0
    11 Version: 1.17.3
     10Package Version: 1.17.4.0
     11Version: 1.17.4
    1212CAUTION: The following field is parsed in `trunk/` for release configuration:
    13 Stable Tag: 1.17.3
     13Stable Tag: 1.17.4
    1414License: GPLv2 or later
    1515License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    636636== Changelog ==
    637637
    638 = 1.17.3 (2025-12-09) =
     638= 1.17.4 (2025-12-11) =
     639
     640* Paragraph links: Replace deprecated `seems_utf8` with `wp_is_valid_utf8`.
     641* Settings: Security: Debug and remove sanitization callback in `register_setting()`.
     642* Export: Security: Debug and remove sanitization callback in `register_setting()`.
     643* Import: Security: Debug and remove sanitization callback in `register_setting()`.
     644* Templates: Security: Debug and remove sanitization callback in `register_setting()`.
     645* Conversion: Security: Debug and remove sanitization callback in `register_setting()`.
     646
     647= 1.17.3 (2025-12-09) [3414896](https://plugins.trac.wordpress.org/changeset/3414896/anrghg) =
    639648
    640649* Settings: Security: Add sanitization when calling `register_setting()`.
Note: See TracChangeset for help on using the changeset viewer.