Skip to content
Permalink
Browse files

WP-r45946: Remove _convert_urlencoded_to_entities() from the get_the_…

…content() callback.

Merges https://core.trac.wordpress.org/changeset/45937 to the 4.9 branch.

WP:Props vortfu, whyisjake, peterwilsoncc

Conflicts:
  src/wp-includes/post-template.php
----
Merges https://core.trac.wordpress.org/changeset/45946 / WordPress/wordpress-develop@10d96ec to ClassicPress.
  • Loading branch information...
whyisjake authored and nylen committed Sep 4, 2019
1 parent 1c174bc commit df914e53ff50949be998216b4bb4017ce9e4b9cf
@@ -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 WP-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.
*

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit df914e5

Please sign in to comment.
You can’t perform that action at this time.