Changeset 34134
- Timestamp:
- 09/14/2015 10:35:22 PM (9 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r33954 r34134 871 871 $attr['caption'] = trim( $matches[2] ); 872 872 } 873 } elseif ( strpos( $attr['caption'], '<' ) !== false ) { 874 $attr['caption'] = wp_kses( $attr['caption'], 'post' ); 873 875 } 874 876 -
trunk/src/wp-includes/shortcodes.php
r33734 r34134 463 463 $atts[] = stripcslashes($m[8]); 464 464 } 465 466 // Reject any unclosed HTML elements 467 foreach( $atts as &$value ) { 468 if ( false !== strpos( $value, '<' ) ) { 469 if ( 1 !== preg_match( '/^[^<]*+(?:<[^>]*+>[^<]*+)*+$/', $value ) ) { 470 $value = ''; 471 } 472 } 473 } 465 474 } else { 466 475 $atts = ltrim($text);
Note: See TracChangeset
for help on using the changeset viewer.