Changeset 3055320
- Timestamp:
- 03/20/2024 12:34:52 PM (2 years ago)
- Location:
- block-options
- Files:
-
- 8 edited
- 1 copied
-
tags/1.40.5 (copied) (copied from block-options/trunk)
-
tags/1.40.5/includes/class-editorskit-shortcodes.php (modified) (3 diffs)
-
tags/1.40.5/languages/editorskit.pot (modified) (2 diffs)
-
tags/1.40.5/plugin.php (modified) (2 diffs)
-
tags/1.40.5/readme.txt (modified) (2 diffs)
-
trunk/includes/class-editorskit-shortcodes.php (modified) (3 diffs)
-
trunk/languages/editorskit.pot (modified) (2 diffs)
-
trunk/plugin.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
block-options/tags/1.40.5/includes/class-editorskit-shortcodes.php
r2966353 r3055320 41 41 return $content; 42 42 } 43 $tag = 'div'; 43 44 $tag = 'div'; 45 $allowed_tags = apply_filters( 'editorskit_allowed_shortcode_tags', array( 'div', 'span' ) ); 44 46 45 47 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'; 47 52 } 48 53 … … 124 129 125 130 if ( isset( $atts['before'] ) ) { 126 $returned_content .= $atts['before'];131 $returned_content .= esc_html( $atts['before'] ); 127 132 } 128 133 … … 130 135 131 136 if ( isset( $atts['after'] ) ) { 132 $returned_content .= $atts['after'];137 $returned_content .= esc_html( $atts['after'] ); 133 138 } 134 139 -
block-options/tags/1.40.5/languages/editorskit.pot
r3010794 r3055320 1 # Copyright (C) 202 3Munir Kamal1 # Copyright (C) 2024 Munir Kamal 2 2 # This file is distributed under the same license as the EditorsKit plugin. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: EditorsKit 1.40. 4\n"5 "Project-Id-Version: EditorsKit 1.40.5\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/block-options\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 202 3-12-16T10:24:22+00:00\n"12 "POT-Creation-Date: 2024-03-20T12:32:51+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.7.1\n" -
block-options/tags/1.40.5/plugin.php
r3010794 r3055320 4 4 * Plugin URI: https://editorskit.com/ 5 5 * Description: EditorsKit is a suite of <strong>page building block options</strong> for the Gutenberg block editor. 6 * Version: 1.40. 46 * Version: 1.40.5 7 7 * Author: Munir Kamal 8 8 * Author URI: https://www.munirkamal.com/ … … 96 96 private function setup_constants() { 97 97 $this->define( 'EDITORSKIT_DEBUG', true ); 98 $this->define( 'EDITORSKIT_VERSION', '1.40. 4' );98 $this->define( 'EDITORSKIT_VERSION', '1.40.5' ); 99 99 $this->define( 'EDITORSKIT_HAS_PRO', false ); 100 100 $this->define( 'EDITORSKIT_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); -
block-options/tags/1.40.5/readme.txt
r3010794 r3055320 5 5 Tags: Gutenberg blocks, WordPress blocks, gutenberg, blocks, Gutenberg editor 6 6 Requires at least: 5.0 7 Tested up to: 6. 37 Tested up to: 6.5 8 8 Requires PHP: 5.6 9 Stable tag: 1.40. 49 Stable tag: 1.40.5 10 10 License: GPL-3.0 11 11 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 198 198 == Changelog == 199 199 200 = 1.40.5 201 * Fix: Add allowed tags restriction in editorskit shortcode. 202 200 203 = 1.40.4 201 204 * Fix: Added a check for file type in styles importer to improve security. -
block-options/trunk/includes/class-editorskit-shortcodes.php
r2966353 r3055320 41 41 return $content; 42 42 } 43 $tag = 'div'; 43 44 $tag = 'div'; 45 $allowed_tags = apply_filters( 'editorskit_allowed_shortcode_tags', array( 'div', 'span' ) ); 44 46 45 47 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'; 47 52 } 48 53 … … 124 129 125 130 if ( isset( $atts['before'] ) ) { 126 $returned_content .= $atts['before'];131 $returned_content .= esc_html( $atts['before'] ); 127 132 } 128 133 … … 130 135 131 136 if ( isset( $atts['after'] ) ) { 132 $returned_content .= $atts['after'];137 $returned_content .= esc_html( $atts['after'] ); 133 138 } 134 139 -
block-options/trunk/languages/editorskit.pot
r3010794 r3055320 1 # Copyright (C) 202 3Munir Kamal1 # Copyright (C) 2024 Munir Kamal 2 2 # This file is distributed under the same license as the EditorsKit plugin. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: EditorsKit 1.40. 4\n"5 "Project-Id-Version: EditorsKit 1.40.5\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/block-options\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 202 3-12-16T10:24:22+00:00\n"12 "POT-Creation-Date: 2024-03-20T12:32:51+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.7.1\n" -
block-options/trunk/plugin.php
r3010794 r3055320 4 4 * Plugin URI: https://editorskit.com/ 5 5 * Description: EditorsKit is a suite of <strong>page building block options</strong> for the Gutenberg block editor. 6 * Version: 1.40. 46 * Version: 1.40.5 7 7 * Author: Munir Kamal 8 8 * Author URI: https://www.munirkamal.com/ … … 96 96 private function setup_constants() { 97 97 $this->define( 'EDITORSKIT_DEBUG', true ); 98 $this->define( 'EDITORSKIT_VERSION', '1.40. 4' );98 $this->define( 'EDITORSKIT_VERSION', '1.40.5' ); 99 99 $this->define( 'EDITORSKIT_HAS_PRO', false ); 100 100 $this->define( 'EDITORSKIT_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); -
block-options/trunk/readme.txt
r3010794 r3055320 5 5 Tags: Gutenberg blocks, WordPress blocks, gutenberg, blocks, Gutenberg editor 6 6 Requires at least: 5.0 7 Tested up to: 6. 37 Tested up to: 6.5 8 8 Requires PHP: 5.6 9 Stable tag: 1.40. 49 Stable tag: 1.40.5 10 10 License: GPL-3.0 11 11 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 198 198 == Changelog == 199 199 200 = 1.40.5 201 * Fix: Add allowed tags restriction in editorskit shortcode. 202 200 203 = 1.40.4 201 204 * Fix: Added a check for file type in styles importer to improve security.
Note: See TracChangeset
for help on using the changeset viewer.