Remove _convert_urlencoded_to_entities() from the get_the_content() callback.

Props vortfu, whyisjake, peterwilsoncc


git-svn-id: https://develop.svn.wordpress.org/trunk@45935 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jake Spurlock
2019-09-04 16:03:56 +00:00
parent 759ee944c6
commit 7f033deee5
6 changed files with 0 additions and 101 deletions

View File

@@ -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.
*