Plugin Directory

Changeset 3166484


Ignore:
Timestamp:
10/10/2024 11:01:14 AM (18 months ago)
Author:
bqworks
Message:

add version 1.9.12

Location:
grid-accordion
Files:
160 added
5 edited

Legend:

Unmodified
Added
Removed
  • grid-accordion/trunk/grid-accordion.php

    r3141490 r3166484  
    55    Plugin URI:  https://bqworks.net/grid-accordion/
    66    Description: Responsive and touch-enabled grid accordion.
    7     Version:     1.9.11
     7    Version:     1.9.12
    88    Author:      bqworks
    99    Author URI:  https://bqworks.net
  • grid-accordion/trunk/includes/class-grid-accordion-validation.php

    r2794438 r3166484  
    153153     */
    154154    public static function validate_grid_accordion_panels( $panels_data ) {
     155        global $allowedposttags;
    155156        $panels = array();
    156157       
     
    166167                    $panel['layers'] = self::validate_panel_layers( $value );
    167168                } else if ( $name === 'html' ) {
    168                     $panel[ $name ] = $value;
     169                    $allowed_html = array_merge(
     170                        $allowedposttags,
     171                        array(
     172                            'iframe' => array(
     173                                'src' => true,
     174                                'width' => true,
     175                                'height' => true,
     176                                'allow' => true,
     177                                'allowfullscreen' => true,
     178                                'class' => true,
     179                                'id' => true,
     180                                'data-*' => true
     181                            ),
     182                            'source' => array(
     183                                'src' => true,
     184                                'type' => true
     185                            )
     186                        )
     187                    );
     188
     189                    $allowed_html = apply_filters( 'grid_accordion_allowed_html', $allowed_html );
     190
     191                    $panel[ $name ] = wp_kses( $value, $allowed_html );
    169192                } else {
    170193                    $panel[ $name ] = sanitize_text_field( $value );
  • grid-accordion/trunk/public/class-grid-accordion.php

    r3141490 r3166484  
    1414     * @var string
    1515     */
    16     const VERSION = '1.9.11';
     16    const VERSION = '1.9.12';
    1717
    1818    /**
  • grid-accordion/trunk/public/class-panel-renderer.php

    r3141490 r3166484  
    116116     */
    117117    public function render() {
     118        global $allowedposttags;
     119       
     120        $allowed_html = array_merge(
     121            $allowedposttags,
     122            array(
     123                'iframe' => array(
     124                    'src' => true,
     125                    'width' => true,
     126                    'height' => true,
     127                    'allow' => true,
     128                    'allowfullscreen' => true,
     129                    'class' => true,
     130                    'id' => true,
     131                    'data-*' => true
     132                ),
     133                'source' => array(
     134                    'src' => true,
     135                    'type' => true
     136                )
     137            )
     138        );
     139
     140        $allowed_html = apply_filters( 'grid_accordion_allowed_html', $allowed_html );
     141
    118142        $classes = 'ga-panel';
    119143        $classes = apply_filters( 'grid_accordion_panel_classes' , $classes, $this->accordion_id, $this->panel_index );
     
    130154
    131155        if ( $this->has_html() ) {
    132             $this->html_output .= "\r\n" . '            ' . $this->create_html();
     156            $this->html_output .= "\r\n" . '            ' . wp_kses( $this->create_html(), $allowed_html );
    133157        }
    134158
  • grid-accordion/trunk/readme.txt

    r3141490 r3166484  
    55Requires at least: 4.0
    66Tested up to: 6.6
    7 Stable tag: 1.9.11
     7Stable tag: 1.9.12
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8484== Changelog ==
    8585
     86= 1.9.12 =
     87* sanitize html content output, to prevent JavaScript code
     88added by users who have access to the plugin's editing area
     89
    8690= 1.9.11 =
    8791* improve accessibility for admin editor panels
Note: See TracChangeset for help on using the changeset viewer.