mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-10 21:00:59 +01:00
Remove _convert_urlencoded_to_entities() from the get_the_content() callback.
Merges [45937] to the 3.9 branch. Props vortfu, whyisjake, peterwilsoncc Built from https://develop.svn.wordpress.org/branches/3.9@45965 git-svn-id: http://core.svn.wordpress.org/branches/3.9@45776 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8c00811afd
commit
2dd32a25ce
@ -280,24 +280,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.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user