Ticket #30856: 30856.diff
File 30856.diff, 814 bytes (added by , 10 years ago) |
---|
-
wp-includes/formatting.php
264 264 } elseif ( '[' === $first && 1 === preg_match( '/^' . $shortcode_regex . '$/', $curl ) ) { 265 265 // This is a shortcode delimiter. 266 266 267 // Replace any curly quotes with straight quotes in shortcodes 268 $quote_search = array( '“', '”', '‘', '’' ); 269 $quote_replace = array( '"', '"', '\'', '\'' ); 270 $curl = str_replace( $quote_search, $quote_replace, $curl ); 271 267 272 if ( '[[' !== substr( $curl, 0, 2 ) && ']]' !== substr( $curl, -2 ) ) { 268 273 // Looks like a normal shortcode. 269 274 _wptexturize_pushpop_element( $curl, $no_texturize_shortcodes_stack, $no_texturize_shortcodes );