From 50d33282c12b30c06ab715b292c16975b123f3a3 Mon Sep 17 00:00:00 2001 From: whyisjake Date: Wed, 4 Sep 2019 16:04:56 +0000 Subject: [PATCH] Remove _convert_urlencoded_to_entities() from the get_the_content() callback. Props vortfu, whyisjake, peterwilsoncc Built from https://develop.svn.wordpress.org/trunk@45935 git-svn-id: http://core.svn.wordpress.org/trunk@45746 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post-template.php | 17 ----------------- wp-includes/version.php | 2 +- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index de395cebd2..ddb5180117 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -368,26 +368,9 @@ function get_the_content( $more_link_text = null, $strip_teaser = false, $post = } } - if ( $preview ) { // Preview fix for JavaScript bug with foreign languages. - $output = preg_replace_callback( '/\%u([0-9A-F]{4})/', '_convert_urlencoded_to_entities', $output ); - } - return $output; } -/** - * Preview fix for JavaScript bug with foreign languages. - * - * @since 3.1.0 - * @access private - * - * @param array $match Match array from preg_replace_callback. - * @return string - */ -function _convert_urlencoded_to_entities( $match ) { - return '&#' . base_convert( $match[1], 16, 10 ) . ';'; -} - /** * Display the post excerpt. * diff --git a/wp-includes/version.php b/wp-includes/version.php index 116b871ff5..ee306126ce 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-alpha-45934'; +$wp_version = '5.3-alpha-45935'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.