Plugin Directory

Changeset 3055320


Ignore:
Timestamp:
03/20/2024 12:34:52 PM (2 years ago)
Author:
munirkamal
Message:

Update to version 1.40.5 from GitHub

Location:
block-options
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • block-options/tags/1.40.5/includes/class-editorskit-shortcodes.php

    r2966353 r3055320  
    4141            return $content;
    4242        }
    43         $tag = 'div';
     43
     44        $tag          = 'div';
     45        $allowed_tags = apply_filters( 'editorskit_allowed_shortcode_tags', array( 'div', 'span' ) );
    4446
    4547        if ( isset( $atts['tag'] ) ) {
    46             $tag = $atts['tag'];
     48            $requested_tag = sanitize_text_field( $atts['tag'] );
     49            $is_allowed    = in_array( $requested_tag, $allowed_tags, true );
     50
     51            $tag = $is_allowed ? $atts['tag'] : 'div';
    4752        }
    4853
     
    124129
    125130        if ( isset( $atts['before'] ) ) {
    126             $returned_content .= $atts['before'];
     131            $returned_content .= esc_html( $atts['before'] );
    127132        }
    128133
     
    130135
    131136        if ( isset( $atts['after'] ) ) {
    132             $returned_content .= $atts['after'];
     137            $returned_content .= esc_html( $atts['after'] );
    133138        }
    134139
  • block-options/tags/1.40.5/languages/editorskit.pot

    r3010794 r3055320  
    1 # Copyright (C) 2023 Munir Kamal
     1# Copyright (C) 2024 Munir Kamal
    22# This file is distributed under the same license as the EditorsKit plugin.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: EditorsKit 1.40.4\n"
     5"Project-Id-Version: EditorsKit 1.40.5\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/block-options\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2023-12-16T10:24:22+00:00\n"
     12"POT-Creation-Date: 2024-03-20T12:32:51+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.7.1\n"
  • block-options/tags/1.40.5/plugin.php

    r3010794 r3055320  
    44 * Plugin URI: https://editorskit.com/
    55 * Description: EditorsKit is a suite of <strong>page building block options</strong> for the Gutenberg block editor.
    6  * Version: 1.40.4
     6 * Version: 1.40.5
    77 * Author: Munir Kamal
    88 * Author URI: https://www.munirkamal.com/
     
    9696        private function setup_constants() {
    9797            $this->define( 'EDITORSKIT_DEBUG', true );
    98             $this->define( 'EDITORSKIT_VERSION', '1.40.4' );
     98            $this->define( 'EDITORSKIT_VERSION', '1.40.5' );
    9999            $this->define( 'EDITORSKIT_HAS_PRO', false );
    100100            $this->define( 'EDITORSKIT_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
  • block-options/tags/1.40.5/readme.txt

    r3010794 r3055320  
    55Tags: Gutenberg blocks, WordPress blocks, gutenberg, blocks, Gutenberg editor
    66Requires at least: 5.0
    7 Tested up to: 6.3
     7Tested up to: 6.5
    88Requires PHP: 5.6
    9 Stable tag: 1.40.4
     9Stable tag: 1.40.5
    1010License: GPL-3.0
    1111License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    198198== Changelog ==
    199199
     200= 1.40.5
     201* Fix: Add allowed tags restriction in editorskit shortcode.
     202
    200203= 1.40.4
    201204* Fix: Added a check for file type in styles importer to improve security.
  • block-options/trunk/includes/class-editorskit-shortcodes.php

    r2966353 r3055320  
    4141            return $content;
    4242        }
    43         $tag = 'div';
     43
     44        $tag          = 'div';
     45        $allowed_tags = apply_filters( 'editorskit_allowed_shortcode_tags', array( 'div', 'span' ) );
    4446
    4547        if ( isset( $atts['tag'] ) ) {
    46             $tag = $atts['tag'];
     48            $requested_tag = sanitize_text_field( $atts['tag'] );
     49            $is_allowed    = in_array( $requested_tag, $allowed_tags, true );
     50
     51            $tag = $is_allowed ? $atts['tag'] : 'div';
    4752        }
    4853
     
    124129
    125130        if ( isset( $atts['before'] ) ) {
    126             $returned_content .= $atts['before'];
     131            $returned_content .= esc_html( $atts['before'] );
    127132        }
    128133
     
    130135
    131136        if ( isset( $atts['after'] ) ) {
    132             $returned_content .= $atts['after'];
     137            $returned_content .= esc_html( $atts['after'] );
    133138        }
    134139
  • block-options/trunk/languages/editorskit.pot

    r3010794 r3055320  
    1 # Copyright (C) 2023 Munir Kamal
     1# Copyright (C) 2024 Munir Kamal
    22# This file is distributed under the same license as the EditorsKit plugin.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: EditorsKit 1.40.4\n"
     5"Project-Id-Version: EditorsKit 1.40.5\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/block-options\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2023-12-16T10:24:22+00:00\n"
     12"POT-Creation-Date: 2024-03-20T12:32:51+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.7.1\n"
  • block-options/trunk/plugin.php

    r3010794 r3055320  
    44 * Plugin URI: https://editorskit.com/
    55 * Description: EditorsKit is a suite of <strong>page building block options</strong> for the Gutenberg block editor.
    6  * Version: 1.40.4
     6 * Version: 1.40.5
    77 * Author: Munir Kamal
    88 * Author URI: https://www.munirkamal.com/
     
    9696        private function setup_constants() {
    9797            $this->define( 'EDITORSKIT_DEBUG', true );
    98             $this->define( 'EDITORSKIT_VERSION', '1.40.4' );
     98            $this->define( 'EDITORSKIT_VERSION', '1.40.5' );
    9999            $this->define( 'EDITORSKIT_HAS_PRO', false );
    100100            $this->define( 'EDITORSKIT_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
  • block-options/trunk/readme.txt

    r3010794 r3055320  
    55Tags: Gutenberg blocks, WordPress blocks, gutenberg, blocks, Gutenberg editor
    66Requires at least: 5.0
    7 Tested up to: 6.3
     7Tested up to: 6.5
    88Requires PHP: 5.6
    9 Stable tag: 1.40.4
     9Stable tag: 1.40.5
    1010License: GPL-3.0
    1111License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    198198== Changelog ==
    199199
     200= 1.40.5
     201* Fix: Add allowed tags restriction in editorskit shortcode.
     202
    200203= 1.40.4
    201204* Fix: Added a check for file type in styles importer to improve security.
Note: See TracChangeset for help on using the changeset viewer.