From bd6ae7b3ebb4d543409593525e048aefc2246fbb Mon Sep 17 00:00:00 2001 From: whyisjake Date: Wed, 4 Sep 2019 16:32:47 +0000 Subject: [PATCH] Remove _convert_urlencoded_to_entities() from the get_the_content() callback. Merges [45937] to the 5.0 branch. Props vortfu, whyisjake, peterwilsoncc Built from https://develop.svn.wordpress.org/branches/5.0@45945 git-svn-id: http://core.svn.wordpress.org/branches/5.0@45756 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post-template.php | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index 91c2d8f660..cbb3b53871 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -324,25 +324,9 @@ function get_the_content( $more_link_text = null, $strip_teaser = false ) { } } - 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. *