Changeset 33600
- Timestamp:
- 08/09/2015 08:48:02 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/shortcodes.php
r33594 r33600 400 400 // Sanitize the shortcode output using KSES. 401 401 $new_attr = wp_kses_one_attr( $new_attr, $elname ); 402 if ( '' !== $new_attr) {402 if ( '' !== trim( $new_attr ) ) { 403 403 // The shortcode is safe to use now. 404 404 $attr = $new_attr; -
trunk/tests/phpunit/tests/shortcode.php
r33594 r33600 420 420 ), 421 421 array( 422 '1 <a href="[test-shortcode-tag]"> 2 <a href="[test-shortcode-tag]" >', 423 '1 <a href=""> 2 <a href="" >', 424 ), 425 array( 426 '1 <a noise="[test-shortcode-tag]"> 2 <a noise=" [test-shortcode-tag] " >', 427 '1 <a noise="[test-shortcode-tag]"> 2 <a noise=" [test-shortcode-tag] " >', 428 ), 429 array( 422 430 '[gallery title="<div>hello</div>"]', 423 431 '',
Note: See TracChangeset
for help on using the changeset viewer.