Plugin Directory

Changeset 2770817 for anrghg


Ignore:
Timestamp:
08/16/2022 02:08:44 AM (4 years ago)
Author:
anrghg
Message:

1.5.6.0

1.5.6 (2022-08-16)

  • Post Meta box: Debug data saving by removing wp_unslash(), additionally to removing sanitize_option().
  • Notes and sources: Block: Add missing collapsing behavior implementation.
Location:
anrghg
Files:
1 deleted
14 edited
1 copied

Legend:

Unmodified
Added
Removed
  • anrghg/tags/1.5.6/admin/metabox.php

    r2770798 r2770817  
    12381238
    12391239/**
    1240  * Saves the form fields of this meta box.
     1240 * Saves the form fields.
    12411241 *
    12421242 * @since 1.4.3 Remove `sanitize_option()`.
     
    12451245 *     $l_s_val = sanitize_option( wp_unslash( $_POST[ $l_s_key ] ) );
    12461246 *
     1247 * Neither `sanitize_option()` nor `wp_unslash()` (nor both) are usable.
    12471248 * PHPCS “Detected usage of a non-sanitized input variable: $_POST[$l_s_key]”
    12481249 * is not actionable and needs to be whitelisted as-is.
     
    12621263            if ( array_key_exists( $l_s_key, $_POST ) ) {
    12631264                // phpcs:ignore WordPress.Security.ValidatedSanitizedInput
    1264                 $l_s_val = wp_unslash( $_POST[ $l_s_key ] );
     1265                $l_s_val = ( $_POST[ $l_s_key ] );
    12651266                update_post_meta(
    12661267                    $p_i_post_id,
  • anrghg/tags/1.5.6/anrghg.php

    r2770798 r2770817  
    1414 * Tested PHP up to: 8.0
    1515 * CAUTION: The following field is parsed in the `stable tag` folder for upgrade configuration:
    16  * Version: 1.5.5
     16 * Version: 1.5.6
    1717 * Author: ANRGHG
    1818 * Author URI: https://anrghg.sunsite.fr
     
    9494 * @var string C_S_ANRGHG_VER  Plugin version constant.
    9595 */
    96 define( 'C_S_ANRGHG_VER', '1.5.5' );
     96define( 'C_S_ANRGHG_VER', '1.5.6' );
    9797
    9898/**
  • anrghg/tags/1.5.6/build.sh

    r2770196 r2770817  
    77# 2022-01-27T0327+0100 Add support for References block.
    88# 2022-06-04T2058+0200 Move build configuration to plugin folder.
    9 # Last modified: 2022-08-12T2320+0200
     9# Last modified: 2022-08-16T0403+0200
    1010#
    1111# The final block scripts are built by Node Package Manager based on
     
    198198    cp anrghg-es_ES.mo anrghg-es_CL.mo
    199199    cp anrghg-es_ES.mo anrghg-es_CO.mo
     200    cp anrghg-es_ES.mo anrghg-es_CR.mo
     201    cp anrghg-es_ES.mo anrghg-es_DO.mo
     202    cp anrghg-es_ES.mo anrghg-es_EC.mo
    200203    cp anrghg-es_ES.mo anrghg-es_GT.mo
    201204    cp anrghg-es_ES.mo anrghg-es_MX.mo
    202205    cp anrghg-es_ES.mo anrghg-es_PE.mo
    203206    cp anrghg-es_ES.mo anrghg-es_PR.mo
     207    cp anrghg-es_ES.mo anrghg-es_UY.mo
    204208    cp anrghg-es_ES.mo anrghg-es_VE.mo
    205209    cp anrghg-fr_FR.mo anrghg-fr_BE.mo
  • anrghg/tags/1.5.6/includes/complements.php

    r2770325 r2770817  
    10831083
    10841084                /**
     1085                 * Assesses collapsing behavior.
     1086                 *
     1087                 * @since 1.5.6
     1088                 */
     1089                $l_b_collapsible      = ${"l_b_collapsible_$l_s_type"};
     1090                $l_b_collapsed        = ${"l_b_collapsed_$l_s_type"};
     1091                $l_s_block_collapsing = $l_a_sections[ "collapse_$l_s_type" ][ $l_i_section_index ];
     1092                if ( ! empty( $l_s_block_collapsing ) ) {
     1093                    switch ( $l_s_block_collapsing ) {
     1094                        case 'collapsed':
     1095                            $l_i_note_list_collapse = 1;
     1096                            break;
     1097                        case 'expanded':
     1098                            $l_i_note_list_collapse = -1;
     1099                            break;
     1100                        case 'uncollapsible':
     1101                            $l_i_note_list_collapse = 0;
     1102                            break;
     1103                    }
     1104                    $l_b_collapsible = (bool) $l_i_note_list_collapse;
     1105                    $l_b_collapsed   = 1 === $l_i_note_list_collapse;
     1106                }
     1107
     1108                /**
    10851109                 * Inserts optional expansion script.
    10861110                 *
     
    11151139                    $l_s_list .= ' aria-label="' . ${"l_s_list_label_aria_$l_s_type"} . '"';
    11161140                }
    1117                 if ( ${"l_b_collapsible_$l_s_type"} ) {
     1141                if ( $l_b_collapsible ) {
    11181142                    $l_s_list .= ' id="anrghg_toggle_' . $l_s_list_id . '"';
    1119                     if ( ! ${"l_b_collapsed_$l_s_type"} ) {
     1143                    if ( ! $l_b_collapsed ) {
    11201144                        $l_s_list .= ' checked="checked"';
    11211145                    }
     
    11741198                    }
    11751199                }
    1176                 if ( ${"l_b_collapsible_$l_s_type"} ) {
     1200                if ( $l_b_collapsible ) {
    11771201                    $l_s_list .= '"><label for="anrghg_toggle_' . $l_s_list_id . '"><a tabindex="-1';
    11781202                }
    11791203                $l_s_list .= '"><' . $l_s_label_element;
    11801204                $l_s_list .= " class=\"anrghg-list-heading anrghg_$l_s_type" . 's';
    1181                 if ( ${"l_b_collapsible_$l_s_type"} ) {
     1205                if ( $l_b_collapsible ) {
    11821206                    $l_s_list .= ' anrghg-pointer">';
    11831207                } else {
     
    12121236
    12131237                $l_s_list .= "</$l_s_label_element>";
    1214                 if ( ${"l_b_collapsible_$l_s_type"} ) {
     1238                if ( $l_b_collapsible ) {
    12151239                    $l_s_list .= '</a></label>';
    12161240                }
  • anrghg/tags/1.5.6/package.json

    r2770798 r2770817  
    11{
    22    "name": "anrghg",
    3     "version": " 1.5.5",
     3    "version": " 1.5.6",
    44    "description": "A.N.R.GHG Publishing Helper",
    55    "main": "index.js",
  • anrghg/tags/1.5.6/readme.txt

    r2770798 r2770817  
    88Requires PHP: 5.6
    99Tested PHP up to: 8.0
    10 Package Version: 1.5.5.0
    11 Version: 1.5.5
     10Package Version: 1.5.6.0
     11Version: 1.5.6
    1212CAUTION: The following field is parsed in `trunk/` for release configuration:
    13 Stable Tag: 1.5.5
     13Stable Tag: 1.5.6
    1414License: GPLv2 or later
    1515License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    535535== Changelog ==
    536536
     537= 1.5.6 (2022-08-16) =
     538
     539* Post Meta box: Debug data saving by removing `wp_unslash()`, additionally to removing `sanitize_option()`.
     540* Notes and sources: Block: Add missing collapsing behavior implementation.
     541
    537542= 1.5.5 (2022-08-15) =
    538543
  • anrghg/tags/1.5.6/svn-revs.txt

    r2770798 r2770817  
    1111Past revisions:
    1212
     131.5.5.0        2770398  2022-08-15 23:51:31 +0000 (Mon, 15 Aug 2022)
    13141.5.5d1.0      2770364  2022-08-14 20:30:03 +0000 (Sun, 14 Aug 2022)
    14151.5.5d0.0 trk  2770361  2022-08-14 20:06:22 +0000 (Sun, 14 Aug 2022)
  • anrghg/trunk/admin/metabox.php

    r2770798 r2770817  
    12381238
    12391239/**
    1240  * Saves the form fields of this meta box.
     1240 * Saves the form fields.
    12411241 *
    12421242 * @since 1.4.3 Remove `sanitize_option()`.
     
    12451245 *     $l_s_val = sanitize_option( wp_unslash( $_POST[ $l_s_key ] ) );
    12461246 *
     1247 * Neither `sanitize_option()` nor `wp_unslash()` (nor both) are usable.
    12471248 * PHPCS “Detected usage of a non-sanitized input variable: $_POST[$l_s_key]”
    12481249 * is not actionable and needs to be whitelisted as-is.
     
    12621263            if ( array_key_exists( $l_s_key, $_POST ) ) {
    12631264                // phpcs:ignore WordPress.Security.ValidatedSanitizedInput
    1264                 $l_s_val = wp_unslash( $_POST[ $l_s_key ] );
     1265                $l_s_val = ( $_POST[ $l_s_key ] );
    12651266                update_post_meta(
    12661267                    $p_i_post_id,
  • anrghg/trunk/anrghg.php

    r2770798 r2770817  
    1414 * Tested PHP up to: 8.0
    1515 * CAUTION: The following field is parsed in the `stable tag` folder for upgrade configuration:
    16  * Version: 1.5.5
     16 * Version: 1.5.6
    1717 * Author: ANRGHG
    1818 * Author URI: https://anrghg.sunsite.fr
     
    9494 * @var string C_S_ANRGHG_VER  Plugin version constant.
    9595 */
    96 define( 'C_S_ANRGHG_VER', '1.5.5' );
     96define( 'C_S_ANRGHG_VER', '1.5.6' );
    9797
    9898/**
  • anrghg/trunk/build.sh

    r2770196 r2770817  
    77# 2022-01-27T0327+0100 Add support for References block.
    88# 2022-06-04T2058+0200 Move build configuration to plugin folder.
    9 # Last modified: 2022-08-12T2320+0200
     9# Last modified: 2022-08-16T0403+0200
    1010#
    1111# The final block scripts are built by Node Package Manager based on
     
    198198    cp anrghg-es_ES.mo anrghg-es_CL.mo
    199199    cp anrghg-es_ES.mo anrghg-es_CO.mo
     200    cp anrghg-es_ES.mo anrghg-es_CR.mo
     201    cp anrghg-es_ES.mo anrghg-es_DO.mo
     202    cp anrghg-es_ES.mo anrghg-es_EC.mo
    200203    cp anrghg-es_ES.mo anrghg-es_GT.mo
    201204    cp anrghg-es_ES.mo anrghg-es_MX.mo
    202205    cp anrghg-es_ES.mo anrghg-es_PE.mo
    203206    cp anrghg-es_ES.mo anrghg-es_PR.mo
     207    cp anrghg-es_ES.mo anrghg-es_UY.mo
    204208    cp anrghg-es_ES.mo anrghg-es_VE.mo
    205209    cp anrghg-fr_FR.mo anrghg-fr_BE.mo
  • anrghg/trunk/includes/complements.php

    r2770325 r2770817  
    10831083
    10841084                /**
     1085                 * Assesses collapsing behavior.
     1086                 *
     1087                 * @since 1.5.6
     1088                 */
     1089                $l_b_collapsible      = ${"l_b_collapsible_$l_s_type"};
     1090                $l_b_collapsed        = ${"l_b_collapsed_$l_s_type"};
     1091                $l_s_block_collapsing = $l_a_sections[ "collapse_$l_s_type" ][ $l_i_section_index ];
     1092                if ( ! empty( $l_s_block_collapsing ) ) {
     1093                    switch ( $l_s_block_collapsing ) {
     1094                        case 'collapsed':
     1095                            $l_i_note_list_collapse = 1;
     1096                            break;
     1097                        case 'expanded':
     1098                            $l_i_note_list_collapse = -1;
     1099                            break;
     1100                        case 'uncollapsible':
     1101                            $l_i_note_list_collapse = 0;
     1102                            break;
     1103                    }
     1104                    $l_b_collapsible = (bool) $l_i_note_list_collapse;
     1105                    $l_b_collapsed   = 1 === $l_i_note_list_collapse;
     1106                }
     1107
     1108                /**
    10851109                 * Inserts optional expansion script.
    10861110                 *
     
    11151139                    $l_s_list .= ' aria-label="' . ${"l_s_list_label_aria_$l_s_type"} . '"';
    11161140                }
    1117                 if ( ${"l_b_collapsible_$l_s_type"} ) {
     1141                if ( $l_b_collapsible ) {
    11181142                    $l_s_list .= ' id="anrghg_toggle_' . $l_s_list_id . '"';
    1119                     if ( ! ${"l_b_collapsed_$l_s_type"} ) {
     1143                    if ( ! $l_b_collapsed ) {
    11201144                        $l_s_list .= ' checked="checked"';
    11211145                    }
     
    11741198                    }
    11751199                }
    1176                 if ( ${"l_b_collapsible_$l_s_type"} ) {
     1200                if ( $l_b_collapsible ) {
    11771201                    $l_s_list .= '"><label for="anrghg_toggle_' . $l_s_list_id . '"><a tabindex="-1';
    11781202                }
    11791203                $l_s_list .= '"><' . $l_s_label_element;
    11801204                $l_s_list .= " class=\"anrghg-list-heading anrghg_$l_s_type" . 's';
    1181                 if ( ${"l_b_collapsible_$l_s_type"} ) {
     1205                if ( $l_b_collapsible ) {
    11821206                    $l_s_list .= ' anrghg-pointer">';
    11831207                } else {
     
    12121236
    12131237                $l_s_list .= "</$l_s_label_element>";
    1214                 if ( ${"l_b_collapsible_$l_s_type"} ) {
     1238                if ( $l_b_collapsible ) {
    12151239                    $l_s_list .= '</a></label>';
    12161240                }
  • anrghg/trunk/package.json

    r2770798 r2770817  
    11{
    22    "name": "anrghg",
    3     "version": " 1.5.5",
     3    "version": " 1.5.6",
    44    "description": "A.N.R.GHG Publishing Helper",
    55    "main": "index.js",
  • anrghg/trunk/readme.txt

    r2770798 r2770817  
    88Requires PHP: 5.6
    99Tested PHP up to: 8.0
    10 Package Version: 1.5.5.0
    11 Version: 1.5.5
     10Package Version: 1.5.6.0
     11Version: 1.5.6
    1212CAUTION: The following field is parsed in `trunk/` for release configuration:
    13 Stable Tag: 1.5.5
     13Stable Tag: 1.5.6
    1414License: GPLv2 or later
    1515License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    535535== Changelog ==
    536536
     537= 1.5.6 (2022-08-16) =
     538
     539* Post Meta box: Debug data saving by removing `wp_unslash()`, additionally to removing `sanitize_option()`.
     540* Notes and sources: Block: Add missing collapsing behavior implementation.
     541
    537542= 1.5.5 (2022-08-15) =
    538543
  • anrghg/trunk/svn-revs.txt

    r2770798 r2770817  
    1111Past revisions:
    1212
     131.5.5.0        2770398  2022-08-15 23:51:31 +0000 (Mon, 15 Aug 2022)
    13141.5.5d1.0      2770364  2022-08-14 20:30:03 +0000 (Sun, 14 Aug 2022)
    14151.5.5d0.0 trk  2770361  2022-08-14 20:06:22 +0000 (Sun, 14 Aug 2022)
Note: See TracChangeset for help on using the changeset viewer.