From 6527c24ab1c5af7e6ffeeadbc6bf060946567720 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Sat, 10 Dec 2016 06:45:42 +0000 Subject: [PATCH] Customize: Prevent single quotes (apostrophes) in `custom_css` values from unexpectedly causing false positives for unbalanced character validation errors. See #39218, #35395. Fixes #39198. Built from https://develop.svn.wordpress.org/trunk@39559 git-svn-id: http://core.svn.wordpress.org/trunk@39499 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../customize/class-wp-customize-custom-css-setting.php | 8 +------- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/wp-includes/customize/class-wp-customize-custom-css-setting.php b/wp-includes/customize/class-wp-customize-custom-css-setting.php index cb0f151aed..3189ae9262 100644 --- a/wp-includes/customize/class-wp-customize-custom-css-setting.php +++ b/wp-includes/customize/class-wp-customize-custom-css-setting.php @@ -191,13 +191,7 @@ final class WP_Customize_Custom_CSS_Setting extends WP_Customize_Setting { $imbalanced = true; } - // Ensure single quotes are equal. - if ( ! $this->validate_equal_characters( '\'', $css ) ) { - $validity->add( 'unequal_single_quotes', __( 'Your single quotes \' are uneven. Make sure there is a closing \' for every opening \'.' ) ); - $imbalanced = true; - } - - // Ensure single quotes are equal. + // Ensure double quotes are equal. if ( ! $this->validate_equal_characters( '"', $css ) ) { $validity->add( 'unequal_double_quotes', __( 'Your double quotes " are uneven. Make sure there is a closing " for every opening ".' ) ); $imbalanced = true; diff --git a/wp-includes/version.php b/wp-includes/version.php index 54c542df81..5eece559a5 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.8-alpha-39558'; +$wp_version = '4.8-alpha-39559'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.