diff --git a/src/wp-includes/formatting.php b/src/wp-includes/formatting.php index e3681b071a2eb..a9288f65a98c4 100644 --- a/src/wp-includes/formatting.php +++ b/src/wp-includes/formatting.php @@ -227,8 +227,10 @@ function wptexturize( $text, $reset = false ) { */ $no_texturize_shortcodes = apply_filters( 'no_texturize_shortcodes', $default_no_texturize_shortcodes ); - $no_texturize_tags_stack = array(); - $no_texturize_shortcodes_stack = array(); + $no_texturize_tags_stack = array(); + $no_texturize_shortcodes_stack = array(); + $last_text_ends_with_quote_context = false; + $quote_after_inline_tag = false; // Look for shortcodes and HTML elements. @@ -246,9 +248,11 @@ function wptexturize( $text, $reset = false ) { if ( '<' === $first ) { if ( str_starts_with( $curl, '