mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-24 21:32:51 +02:00
Remove _convert_urlencoded_to_entities() from the get_the_content() callback.
Props vortfu, whyisjake, peterwilsoncc Built from https://develop.svn.wordpress.org/branches/5.2@45937 git-svn-id: http://core.svn.wordpress.org/branches/5.2@45748 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c4999912e7
commit
6a63bf0361
@ -362,26 +362,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;
|
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.
|
* Display the post excerpt.
|
||||||
*
|
*
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.2.3-RC1-45880';
|
$wp_version = '5.2.3-RC1-45937';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user