wptexturize() does not need to staticize variables it only uses to set up variables it needs statically. see #19602.
git-svn-id: https://develop.svn.wordpress.org/trunk@19796 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d87851514a
commit
d6886c9059
@ -28,12 +28,11 @@
|
|||||||
*/
|
*/
|
||||||
function wptexturize($text) {
|
function wptexturize($text) {
|
||||||
global $wp_cockneyreplace;
|
global $wp_cockneyreplace;
|
||||||
static $opening_quote, $closing_quote, $opening_single_quote, $closing_single_quote, $en_dash, $em_dash,
|
static $static_characters, $static_replacements, $dynamic_characters, $dynamic_replacements,
|
||||||
$apos, $prime, $double_prime, $default_no_texturize_tags, $default_no_texturize_shortcodes,
|
$default_no_texturize_tags, $default_no_texturize_shortcodes;
|
||||||
$static_characters, $static_replacements, $dynamic_characters, $dynamic_replacements;
|
|
||||||
|
|
||||||
// No need to set up these static variables more than once
|
// No need to set up these static variables more than once
|
||||||
if ( empty( $opening_quote ) ) {
|
if ( ! isset( $static_characters ) ) {
|
||||||
/* translators: opening curly double quote */
|
/* translators: opening curly double quote */
|
||||||
$opening_quote = _x( '“', 'opening curly double quote' );
|
$opening_quote = _x( '“', 'opening curly double quote' );
|
||||||
/* translators: closing curly double quote */
|
/* translators: closing curly double quote */
|
||||||
|
Loading…
Reference in New Issue
Block a user