diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index 8085745199..57a7a0e2e3 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -315,25 +315,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. *