Plugin Directory

Changeset 2742540 for anrghg


Ignore:
Timestamp:
06/15/2022 01:08:34 AM (4 years ago)
Author:
anrghg
Message:

0.81.1.0

0.81.1 (2022-06-15)

  • Security: Settings: Escaping output: wp_kses() with custom whitelist POC.
Location:
anrghg
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • anrghg/tags/0.81.1/admin/anrghg-admin.php

    r2742418 r2742540  
    65486548 *
    65496549 * @since 0.60.0
     6550 * @since
    65506551 * For maintainability `$p_b_label_for` comes next to `$p_s_label` so
    65516552 * the assignation of `true` as its default value would be pointless.
     
    65806581        $l_a_params[ 'val_' . $l_i_index ] = $g_a_anrghg_config[ $l_s_key ];
    65816582    }
     6583    $l_a_params['ok']    = array(
     6584        'div' => array(
     6585            'class' => array(),
     6586            '' => array(),
     6587
     6588        ),
     6589        'fieldset' => array(),
     6590        'input' => array(
     6591            'checked' => array(),
     6592            'id' => array(),
     6593            'name' => array(),
     6594            'type' => array(),
     6595            'value' => array(),
     6596
     6597        ),
     6598        'label' => array(
     6599            'for' => array(),
     6600
     6601        ),
     6602        'legend' => array(
     6603            'aria-hidden' => array(),
     6604            'aria-label' => array(),
     6605            'class' => array(),
     6606        ),
     6607        'span' => array(
     6608            'class' => array(),
     6609
     6610        ),
     6611        'style' => array(),
     6612        'script' => array(),
     6613    );
    65826614    add_settings_field(
    65836615        $p_a_keys[0],
     
    85298561        $p_a_params
    85308562    );
    8531     echo anrghg_fieldset(
    8532         __( 'The settings checked below are displayed inside:', 'anrghg' ),
    8533         'description',
    8534         $p_a_params,
    8535         anrghg_checkbox_list(
    8536             array(
    8537                 array( __( 'Published first information', 'anrghg' ), __( 'Saves both the prefills and the field contents.', 'anrghg' ) ),
    8538                 __( 'Thank You message', 'anrghg' ),
    8539                 __( 'Table of contents', 'anrghg' ) . ' ' . __( 'Insertion', 'anrghg' ),
    8540                 __( 'Table of contents', 'anrghg' ) . ' ' . __( 'Alignment', 'anrghg' ),
    8541                 __( 'Table of contents', 'anrghg' ) . ' ' . __( 'Heading label', 'anrghg' ),
    8542                 __( 'Table of contents', 'anrghg' ) . ' ' . __( 'Collapsing behavior', 'anrghg' ),
    8543                 __( 'Complements: Processing deactivation', 'anrghg' ),
    8544                 __( 'Complement lists and anchor tooltips: Writing direction', 'anrghg' ),
    8545                 array( __( 'Complement, name, tooltip and link delimiters', 'anrghg' ), __( 'Prefills the delimiters as configured when adding the post, and saves the field contents.', 'anrghg' ) ),
    8546                 __( 'Complement lists', 'anrghg' ) . ' ' . __( 'Heading label', 'anrghg' ),
    8547                 __( 'Complement lists', 'anrghg' ) . ' ' . __( 'Collapsing behavior', 'anrghg' ),
    8548                 __( 'Complement lists', 'anrghg' ) . ' ' . __( 'Footer deferral', 'anrghg' ),
    8549             ),
    8550             true,
     8563    echo wp_kses(
     8564        anrghg_fieldset(
     8565            __( 'The settings checked below are displayed inside:', 'anrghg' ),
     8566            'description',
    85518567            $p_a_params,
    8552             1,
    8553             false
    8554         )
     8568            anrghg_checkbox_list(
     8569                array(
     8570                    array( __( 'Published first information', 'anrghg' ), __( 'Saves both the prefills and the field contents.', 'anrghg' ) ),
     8571                    __( 'Thank You message', 'anrghg' ),
     8572                    __( 'Table of contents', 'anrghg' ) . ' ' . __( 'Insertion', 'anrghg' ),
     8573                    __( 'Table of contents', 'anrghg' ) . ' ' . __( 'Alignment', 'anrghg' ),
     8574                    __( 'Table of contents', 'anrghg' ) . ' ' . __( 'Heading label', 'anrghg' ),
     8575                    __( 'Table of contents', 'anrghg' ) . ' ' . __( 'Collapsing behavior', 'anrghg' ),
     8576                    __( 'Complements: Processing deactivation', 'anrghg' ),
     8577                    __( 'Complement lists and anchor tooltips: Writing direction', 'anrghg' ),
     8578                    array( __( 'Complement, name, tooltip and link delimiters', 'anrghg' ), __( 'Prefills the delimiters as configured when adding the post, and saves the field contents.', 'anrghg' ) ),
     8579                    __( 'Complement lists', 'anrghg' ) . ' ' . __( 'Heading label', 'anrghg' ),
     8580                    __( 'Complement lists', 'anrghg' ) . ' ' . __( 'Collapsing behavior', 'anrghg' ),
     8581                    __( 'Complement lists', 'anrghg' ) . ' ' . __( 'Footer deferral', 'anrghg' ),
     8582                ),
     8583                true,
     8584                $p_a_params,
     8585                1,
     8586                false
     8587            )
     8588        ),
     8589        $p_a_params['ok']
    85558590    );
    85568591    echo anrghg_information(
  • anrghg/tags/0.81.1/anrghg.php

    r2742418 r2742540  
    1414 * Tested PHP up to: 8.0
    1515 * CAUTION: The following field is parsed in the stable tag folder for upgrade configuration:
    16  * Version: 0.81.0
     16 * Version: 0.81.1
    1717 * Author: ANRGHG
    1818 * Author URI: https://anrghg.sunsite.fr
     
    5252 * @todo Conversion: Add conversion script Word ➔ WordPress with inline complements.
    5353 * @todo Conversion: Improve the conversion script markdown ➔ inline complements.
     54 * @todo Conversion: Enqueue the script from the related `anrghg-admin-convert.js`.
    5455 * @todo Accessible emoji: Add emoji name in title and alt text for copy-paste.
    5556 */
     
    7980 * @var string C_S_ANRGHG_VER  Plugin version constant.
    8081 */
    81 define( 'C_S_ANRGHG_VER', '0.81.0' );
     82define( 'C_S_ANRGHG_VER', '0.81.1' );
    8283
    8384/**
  • anrghg/tags/0.81.1/build.sh

    r2742232 r2742540  
    9393fi
    9494#
     95# Update config w/o running Node Package Manager build process:
     96if [ "$1" == "up" ]; then
     97    echo -e "    Running $(dirname $0)/build.sh\n"
     98    echo -e "    Updating 'package.json' from '../anrghg/package.json'."
     99    echo -e "    Updating 'package-lock.json' from '../anrghg/admin/package-lock.json'."
     100    echo -e "    Updating 'webpack.config.js' from '../anrghg/webpack.config.js'.\n"
     101    cp ../anrghg/package.json            package.json
     102    cp ../anrghg/admin/package-lock.json package-lock.json
     103    cp ../anrghg/webpack.config.js       webpack.config.js
     104    echo -e "    Updating the '$(dirname $0)/build.sh' script copy in the '../anrghg/' folder."
     105    cp build.sh ../anrghg/build.sh
     106fi
     107#
    95108# Run PHPCS assessment with reports output in VSCode:
    96109if [ "$1" == "cs" ]; then
    97110    echo -e "    Running $(dirname $0)/build.sh"
    98111    echo -e "    PHPCS-WPCS for display in VSCode.\n"
    99     # ~/vendor/bin/phpcs -s --standard=WordPress ../anrghg/anrghg.php > phpcs-reports/cs-anrghg.txt
    100     # ~/vendor/bin/phpcs -s --standard=WordPress ../anrghg/admin/anrghg-admin.php > phpcs-reports/cs-admin.txt
     112    ~/vendor/bin/phpcs -s --standard=WordPress ../anrghg/anrghg.php > phpcs-reports/cs-anrghg.txt
     113    ~/vendor/bin/phpcs -s --standard=WordPress ../anrghg/admin/anrghg-admin.php >> phpcs-reports/cs-anrghg.txt
    101114    ~/vendor/bin/phpcs -s --standard=WordPress ../anrghg/ > phpcs-reports/cs-all.txt
    102     # code phpcs-reports/cs-anrghg.txt
     115    code phpcs-reports/cs-anrghg.txt
    103116    # code phpcs-reports/cs-admin.txt
    104     code phpcs-reports/cs-all.txt
     117    # code phpcs-reports/cs-all.txt
    105118fi
    106119#
  • anrghg/tags/0.81.1/package.json

    r2742418 r2742540  
    11{
    22  "name": "anrghg",
    3   "version": "0.81.0",
     3  "version": "0.81.1",
    44  "description": "A.N.R.GHG Publishing Helper",
    55  "main": "index.js",
  • anrghg/tags/0.81.1/readme.txt

    r2742418 r2742540  
    88Requires PHP: 5.6
    99Tested PHP up to: 8.0
    10 Package Version: 0.81.0.0
    11 Version: 0.81.0
     10Package Version: 0.81.1.0
     11Version: 0.81.1
    1212CAUTION: The following field is parsed in trunk/ for release configuration:
    13 Stable Tag: 0.81.0
     13Stable Tag: 0.81.1
    1414License: GPLv2 or later
    1515License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    502502== Changelog ==
    503503
     504= 0.81.1 (2022-06-15) =
     505
     506* Security: Settings: Escaping output: `wp_kses()` with custom whitelist POC.
     507
    504508= 0.81.0 (2022-06-14) =
    505509
  • anrghg/trunk/admin/anrghg-admin.php

    r2742418 r2742540  
    65486548 *
    65496549 * @since 0.60.0
     6550 * @since
    65506551 * For maintainability `$p_b_label_for` comes next to `$p_s_label` so
    65516552 * the assignation of `true` as its default value would be pointless.
     
    65806581        $l_a_params[ 'val_' . $l_i_index ] = $g_a_anrghg_config[ $l_s_key ];
    65816582    }
     6583    $l_a_params['ok']    = array(
     6584        'div' => array(
     6585            'class' => array(),
     6586            '' => array(),
     6587
     6588        ),
     6589        'fieldset' => array(),
     6590        'input' => array(
     6591            'checked' => array(),
     6592            'id' => array(),
     6593            'name' => array(),
     6594            'type' => array(),
     6595            'value' => array(),
     6596
     6597        ),
     6598        'label' => array(
     6599            'for' => array(),
     6600
     6601        ),
     6602        'legend' => array(
     6603            'aria-hidden' => array(),
     6604            'aria-label' => array(),
     6605            'class' => array(),
     6606        ),
     6607        'span' => array(
     6608            'class' => array(),
     6609
     6610        ),
     6611        'style' => array(),
     6612        'script' => array(),
     6613    );
    65826614    add_settings_field(
    65836615        $p_a_keys[0],
     
    85298561        $p_a_params
    85308562    );
    8531     echo anrghg_fieldset(
    8532         __( 'The settings checked below are displayed inside:', 'anrghg' ),
    8533         'description',
    8534         $p_a_params,
    8535         anrghg_checkbox_list(
    8536             array(
    8537                 array( __( 'Published first information', 'anrghg' ), __( 'Saves both the prefills and the field contents.', 'anrghg' ) ),
    8538                 __( 'Thank You message', 'anrghg' ),
    8539                 __( 'Table of contents', 'anrghg' ) . ' ' . __( 'Insertion', 'anrghg' ),
    8540                 __( 'Table of contents', 'anrghg' ) . ' ' . __( 'Alignment', 'anrghg' ),
    8541                 __( 'Table of contents', 'anrghg' ) . ' ' . __( 'Heading label', 'anrghg' ),
    8542                 __( 'Table of contents', 'anrghg' ) . ' ' . __( 'Collapsing behavior', 'anrghg' ),
    8543                 __( 'Complements: Processing deactivation', 'anrghg' ),
    8544                 __( 'Complement lists and anchor tooltips: Writing direction', 'anrghg' ),
    8545                 array( __( 'Complement, name, tooltip and link delimiters', 'anrghg' ), __( 'Prefills the delimiters as configured when adding the post, and saves the field contents.', 'anrghg' ) ),
    8546                 __( 'Complement lists', 'anrghg' ) . ' ' . __( 'Heading label', 'anrghg' ),
    8547                 __( 'Complement lists', 'anrghg' ) . ' ' . __( 'Collapsing behavior', 'anrghg' ),
    8548                 __( 'Complement lists', 'anrghg' ) . ' ' . __( 'Footer deferral', 'anrghg' ),
    8549             ),
    8550             true,
     8563    echo wp_kses(
     8564        anrghg_fieldset(
     8565            __( 'The settings checked below are displayed inside:', 'anrghg' ),
     8566            'description',
    85518567            $p_a_params,
    8552             1,
    8553             false
    8554         )
     8568            anrghg_checkbox_list(
     8569                array(
     8570                    array( __( 'Published first information', 'anrghg' ), __( 'Saves both the prefills and the field contents.', 'anrghg' ) ),
     8571                    __( 'Thank You message', 'anrghg' ),
     8572                    __( 'Table of contents', 'anrghg' ) . ' ' . __( 'Insertion', 'anrghg' ),
     8573                    __( 'Table of contents', 'anrghg' ) . ' ' . __( 'Alignment', 'anrghg' ),
     8574                    __( 'Table of contents', 'anrghg' ) . ' ' . __( 'Heading label', 'anrghg' ),
     8575                    __( 'Table of contents', 'anrghg' ) . ' ' . __( 'Collapsing behavior', 'anrghg' ),
     8576                    __( 'Complements: Processing deactivation', 'anrghg' ),
     8577                    __( 'Complement lists and anchor tooltips: Writing direction', 'anrghg' ),
     8578                    array( __( 'Complement, name, tooltip and link delimiters', 'anrghg' ), __( 'Prefills the delimiters as configured when adding the post, and saves the field contents.', 'anrghg' ) ),
     8579                    __( 'Complement lists', 'anrghg' ) . ' ' . __( 'Heading label', 'anrghg' ),
     8580                    __( 'Complement lists', 'anrghg' ) . ' ' . __( 'Collapsing behavior', 'anrghg' ),
     8581                    __( 'Complement lists', 'anrghg' ) . ' ' . __( 'Footer deferral', 'anrghg' ),
     8582                ),
     8583                true,
     8584                $p_a_params,
     8585                1,
     8586                false
     8587            )
     8588        ),
     8589        $p_a_params['ok']
    85558590    );
    85568591    echo anrghg_information(
  • anrghg/trunk/anrghg.php

    r2742418 r2742540  
    1414 * Tested PHP up to: 8.0
    1515 * CAUTION: The following field is parsed in the stable tag folder for upgrade configuration:
    16  * Version: 0.81.0
     16 * Version: 0.81.1
    1717 * Author: ANRGHG
    1818 * Author URI: https://anrghg.sunsite.fr
     
    5252 * @todo Conversion: Add conversion script Word ➔ WordPress with inline complements.
    5353 * @todo Conversion: Improve the conversion script markdown ➔ inline complements.
     54 * @todo Conversion: Enqueue the script from the related `anrghg-admin-convert.js`.
    5455 * @todo Accessible emoji: Add emoji name in title and alt text for copy-paste.
    5556 */
     
    7980 * @var string C_S_ANRGHG_VER  Plugin version constant.
    8081 */
    81 define( 'C_S_ANRGHG_VER', '0.81.0' );
     82define( 'C_S_ANRGHG_VER', '0.81.1' );
    8283
    8384/**
  • anrghg/trunk/build.sh

    r2742232 r2742540  
    9393fi
    9494#
     95# Update config w/o running Node Package Manager build process:
     96if [ "$1" == "up" ]; then
     97    echo -e "    Running $(dirname $0)/build.sh\n"
     98    echo -e "    Updating 'package.json' from '../anrghg/package.json'."
     99    echo -e "    Updating 'package-lock.json' from '../anrghg/admin/package-lock.json'."
     100    echo -e "    Updating 'webpack.config.js' from '../anrghg/webpack.config.js'.\n"
     101    cp ../anrghg/package.json            package.json
     102    cp ../anrghg/admin/package-lock.json package-lock.json
     103    cp ../anrghg/webpack.config.js       webpack.config.js
     104    echo -e "    Updating the '$(dirname $0)/build.sh' script copy in the '../anrghg/' folder."
     105    cp build.sh ../anrghg/build.sh
     106fi
     107#
    95108# Run PHPCS assessment with reports output in VSCode:
    96109if [ "$1" == "cs" ]; then
    97110    echo -e "    Running $(dirname $0)/build.sh"
    98111    echo -e "    PHPCS-WPCS for display in VSCode.\n"
    99     # ~/vendor/bin/phpcs -s --standard=WordPress ../anrghg/anrghg.php > phpcs-reports/cs-anrghg.txt
    100     # ~/vendor/bin/phpcs -s --standard=WordPress ../anrghg/admin/anrghg-admin.php > phpcs-reports/cs-admin.txt
     112    ~/vendor/bin/phpcs -s --standard=WordPress ../anrghg/anrghg.php > phpcs-reports/cs-anrghg.txt
     113    ~/vendor/bin/phpcs -s --standard=WordPress ../anrghg/admin/anrghg-admin.php >> phpcs-reports/cs-anrghg.txt
    101114    ~/vendor/bin/phpcs -s --standard=WordPress ../anrghg/ > phpcs-reports/cs-all.txt
    102     # code phpcs-reports/cs-anrghg.txt
     115    code phpcs-reports/cs-anrghg.txt
    103116    # code phpcs-reports/cs-admin.txt
    104     code phpcs-reports/cs-all.txt
     117    # code phpcs-reports/cs-all.txt
    105118fi
    106119#
  • anrghg/trunk/package.json

    r2742418 r2742540  
    11{
    22  "name": "anrghg",
    3   "version": "0.81.0",
     3  "version": "0.81.1",
    44  "description": "A.N.R.GHG Publishing Helper",
    55  "main": "index.js",
  • anrghg/trunk/readme.txt

    r2742418 r2742540  
    88Requires PHP: 5.6
    99Tested PHP up to: 8.0
    10 Package Version: 0.81.0.0
    11 Version: 0.81.0
     10Package Version: 0.81.1.0
     11Version: 0.81.1
    1212CAUTION: The following field is parsed in trunk/ for release configuration:
    13 Stable Tag: 0.81.0
     13Stable Tag: 0.81.1
    1414License: GPLv2 or later
    1515License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    502502== Changelog ==
    503503
     504= 0.81.1 (2022-06-15) =
     505
     506* Security: Settings: Escaping output: `wp_kses()` with custom whitelist POC.
     507
    504508= 0.81.0 (2022-06-14) =
    505509
Note: See TracChangeset for help on using the changeset viewer.