Changeset 34149
- Timestamp:
- 09/14/2015 10:48:50 PM (9 years ago)
- Location:
- branches/3.8/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.8/src/wp-includes/media.php
r26589 r34149 635 635 $attr['caption'] = trim( $matches[2] ); 636 636 } 637 } elseif ( strpos( $attr['caption'], '<' ) !== false ) { 638 $attr['caption'] = wp_kses( $attr['caption'], 'post' ); 637 639 } 638 640 -
branches/3.8/src/wp-includes/shortcodes.php
r33567 r34149 449 449 $atts[] = stripcslashes($m[8]); 450 450 } 451 452 // Reject any unclosed HTML elements 453 foreach( $atts as &$value ) { 454 if ( false !== strpos( $value, '<' ) ) { 455 if ( 1 !== preg_match( '/^[^<]*+(?:<[^>]*+>[^<]*+)*+$/', $value ) ) { 456 $value = ''; 457 } 458 } 459 } 451 460 } else { 452 461 $atts = ltrim($text);
Note: See TracChangeset
for help on using the changeset viewer.