Changeset 3413383
- Timestamp:
- 12/07/2025 07:37:27 AM (4 months ago)
- Location:
- ghostkit
- Files:
-
- 10 edited
- 1 copied
-
tags/3.4.6 (copied) (copied from ghostkit/trunk)
-
tags/3.4.6/CHANGELOG.md (modified) (1 diff)
-
tags/3.4.6/class-ghost-kit.php (modified) (2 diffs)
-
tags/3.4.6/gutenberg/extend/effects/index.php (modified) (2 diffs)
-
tags/3.4.6/languages/ghostkit.pot (modified) (2 diffs)
-
tags/3.4.6/readme.txt (modified) (2 diffs)
-
trunk/CHANGELOG.md (modified) (1 diff)
-
trunk/class-ghost-kit.php (modified) (2 diffs)
-
trunk/gutenberg/extend/effects/index.php (modified) (2 diffs)
-
trunk/languages/ghostkit.pot (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ghostkit/tags/3.4.6/CHANGELOG.md
r3410135 r3413383 2 2 3 3 All notable changes to this project will be documented in this file. 4 5 = 3.4.6 - Dec 7, 2025 = 6 7 * fixed incorrect double escaping of Effects extension attribute because of WP 6.9 changes 8 * **Pro:** 9 * fixed incorrect double escaping of Attributes extension attribute because of WP 6.9 changes 4 10 5 11 = 3.4.5 - Dec 3, 2025 = -
ghostkit/tags/3.4.6/class-ghost-kit.php
r3410135 r3413383 3 3 * Plugin Name: Ghost Kit 4 4 * Description: Page Builder Blocks and Extensions for Gutenberg 5 * Version: 3.4. 55 * Version: 3.4.6 6 6 * Plugin URI: https://www.ghostkit.io/?utm_source=wordpress.org&utm_medium=readme&utm_campaign=byline 7 7 * Author: Ghost Kit Team … … 19 19 20 20 if ( ! defined( 'GHOSTKIT_VERSION' ) ) { 21 define( 'GHOSTKIT_VERSION', '3.4. 5' );21 define( 'GHOSTKIT_VERSION', '3.4.6' ); 22 22 } 23 23 -
ghostkit/tags/3.4.6/gutenberg/extend/effects/index.php
r3037555 r3413383 48 48 */ 49 49 public function render_block( $block_content, $block, $block_type ) { 50 global $wp_version; 50 51 $has_effects_support = block_has_support( $block_type, array( 'ghostkit', 'effects' ), null ); 51 52 … … 75 76 $effects_data_string = wp_json_encode( $effects_data ); 76 77 77 $processor->set_attribute( 'data-gkt-effects', esc_attr( $effects_data_string ) ); 78 // WP 6.9+ automatically escapes attributes in WP_HTML_Tag_Processor. 79 // For older versions, we need to manually escape to prevent XSS. 80 // 81 // Possible related issues: 82 // - https://github.com/WordPress/wordpress-develop/pull/10591 83 // - https://core.trac.wordpress.org/ticket/64340 . 84 if ( version_compare( $wp_version, '6.9', '<' ) ) { 85 $effects_data_string = esc_attr( $effects_data_string ); 86 } 87 88 $processor->set_attribute( 'data-gkt-effects', $effects_data_string ); 78 89 79 90 if ( ! empty( $effects_data['reveal'] ) ) { -
ghostkit/tags/3.4.6/languages/ghostkit.pot
r3410135 r3413383 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Ghost Kit 3.4. 5\n"5 "Project-Id-Version: Ghost Kit 3.4.6\n" 6 6 "Report-Msgid-Bugs-To: https://github.com/nk-o/ghostkit/issues\n" 7 7 "Last-Translator: nK\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2025-12-0 3T20:43:43+00:00\n"12 "POT-Creation-Date: 2025-12-07T07:35:58+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.9.0\n" -
ghostkit/tags/3.4.6/readme.txt
r3410135 r3413383 7 7 * Tested up to: 6.9 8 8 * Requires PHP: 7.2 9 * Stable tag: 3.4. 59 * Stable tag: 3.4.6 10 10 * License: GPLv2 or later 11 11 * License URI: <http://www.gnu.org/licenses/gpl-2.0.html> … … 270 270 271 271 ## Changelog ## 272 273 = 3.4.6 - Dec 7, 2025 = 274 275 * fixed incorrect double escaping of Effects extension attribute because of WP 6.9 changes 276 * **Pro:** 277 * fixed incorrect double escaping of Attributes extension attribute because of WP 6.9 changes 272 278 273 279 = 3.4.5 - Dec 3, 2025 = -
ghostkit/trunk/CHANGELOG.md
r3410135 r3413383 2 2 3 3 All notable changes to this project will be documented in this file. 4 5 = 3.4.6 - Dec 7, 2025 = 6 7 * fixed incorrect double escaping of Effects extension attribute because of WP 6.9 changes 8 * **Pro:** 9 * fixed incorrect double escaping of Attributes extension attribute because of WP 6.9 changes 4 10 5 11 = 3.4.5 - Dec 3, 2025 = -
ghostkit/trunk/class-ghost-kit.php
r3410135 r3413383 3 3 * Plugin Name: Ghost Kit 4 4 * Description: Page Builder Blocks and Extensions for Gutenberg 5 * Version: 3.4. 55 * Version: 3.4.6 6 6 * Plugin URI: https://www.ghostkit.io/?utm_source=wordpress.org&utm_medium=readme&utm_campaign=byline 7 7 * Author: Ghost Kit Team … … 19 19 20 20 if ( ! defined( 'GHOSTKIT_VERSION' ) ) { 21 define( 'GHOSTKIT_VERSION', '3.4. 5' );21 define( 'GHOSTKIT_VERSION', '3.4.6' ); 22 22 } 23 23 -
ghostkit/trunk/gutenberg/extend/effects/index.php
r3037555 r3413383 48 48 */ 49 49 public function render_block( $block_content, $block, $block_type ) { 50 global $wp_version; 50 51 $has_effects_support = block_has_support( $block_type, array( 'ghostkit', 'effects' ), null ); 51 52 … … 75 76 $effects_data_string = wp_json_encode( $effects_data ); 76 77 77 $processor->set_attribute( 'data-gkt-effects', esc_attr( $effects_data_string ) ); 78 // WP 6.9+ automatically escapes attributes in WP_HTML_Tag_Processor. 79 // For older versions, we need to manually escape to prevent XSS. 80 // 81 // Possible related issues: 82 // - https://github.com/WordPress/wordpress-develop/pull/10591 83 // - https://core.trac.wordpress.org/ticket/64340 . 84 if ( version_compare( $wp_version, '6.9', '<' ) ) { 85 $effects_data_string = esc_attr( $effects_data_string ); 86 } 87 88 $processor->set_attribute( 'data-gkt-effects', $effects_data_string ); 78 89 79 90 if ( ! empty( $effects_data['reveal'] ) ) { -
ghostkit/trunk/languages/ghostkit.pot
r3410135 r3413383 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Ghost Kit 3.4. 5\n"5 "Project-Id-Version: Ghost Kit 3.4.6\n" 6 6 "Report-Msgid-Bugs-To: https://github.com/nk-o/ghostkit/issues\n" 7 7 "Last-Translator: nK\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2025-12-0 3T20:43:43+00:00\n"12 "POT-Creation-Date: 2025-12-07T07:35:58+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.9.0\n" -
ghostkit/trunk/readme.txt
r3410135 r3413383 7 7 * Tested up to: 6.9 8 8 * Requires PHP: 7.2 9 * Stable tag: 3.4. 59 * Stable tag: 3.4.6 10 10 * License: GPLv2 or later 11 11 * License URI: <http://www.gnu.org/licenses/gpl-2.0.html> … … 270 270 271 271 ## Changelog ## 272 273 = 3.4.6 - Dec 7, 2025 = 274 275 * fixed incorrect double escaping of Effects extension attribute because of WP 6.9 changes 276 * **Pro:** 277 * fixed incorrect double escaping of Attributes extension attribute because of WP 6.9 changes 272 278 273 279 = 3.4.5 - Dec 3, 2025 =
Note: See TracChangeset
for help on using the changeset viewer.