Ticket #12061: 12061.2.diff
File 12061.2.diff, 734 bytes (added by , 8 years ago) |
---|
-
src/wp-includes/formatting.php
476 476 return $pee; 477 477 } 478 478 479 $tagregexp = join( '|', array_map( 'preg_quote', array_keys( $shortcode_tags ) ) ); 479 /** 480 * Filter the list of shortcodes to run through the 'unautop' routine. 481 * 482 * @since 4.1.0 483 * 484 * @param array $shortcode_tags Shortcode tags to run through the 'unautop' routine. 485 */ 486 $shortcode_tags = apply_filters( 'unautop_shortcodes', $shortcode_tags ); 487 488 $tagregexp = join( '|', array_map( 'preg_quote', $shortcode_tags ) ); 480 489 $spaces = wp_spaces_regexp(); 481 490 482 491 $pattern =