Changeset 33565
- Timestamp:
- 08/04/2015 07:17:11 AM (8 years ago)
- Location:
- branches/4.0
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.0
- Property svn:mergeinfo changed
/branches/4.2 (added) merged: 33499
- Property svn:mergeinfo changed
-
branches/4.0/src/wp-includes/shortcodes.php
r33522 r33565 359 359 $attributes = wp_kses_attr_parse( $element ); 360 360 if ( false === $attributes ) { 361 // Some plugins are doing things like [name] <[email]>. 362 if ( 1 === preg_match( '%^<\s*\[\[?[^\[\]]+\]%', $element ) ) { 363 $element = preg_replace_callback( "/$pattern/s", 'do_shortcode_tag', $element ); 364 } 365 361 366 // Looks like we found some crazy unfiltered HTML. Skipping it for sanity. 362 367 $element = strtr( $element, $trans ); -
branches/4.0/tests/phpunit/tests/shortcode.php
r33381 r33565 428 428 ), 429 429 array( 430 '<[[gallery]]>', 431 '<[gallery]>', 432 ), 433 array( 434 '<div style="background:url([[gallery]])">', 435 '<div style="background:url([[gallery]])">', 436 ), 437 array( 430 438 '[gallery]<div>Hello</div>[/gallery]', 431 439 '', … … 464 472 '<div [[gallery]]>', // Shortcodes will never be stripped inside elements. 465 473 '<div [[gallery]]>', 474 ), 475 array( 476 '<[[gallery]]>', 477 '<[[gallery]]>', 466 478 ), 467 479 array(
Note: See TracChangeset
for help on using the changeset viewer.