Make WordPress Core


Ignore:
Timestamp:
09/14/2015 10:46:42 PM (9 years ago)
Author:
nbachiyski
Message:

Shortcodes: don't allow unclosed HTML elements in attributes

Merges [34134] for 4.3 branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.3/src/wp-includes/media.php

    r33489 r34144  
    864864            $attr['caption'] = trim( $matches[2] );
    865865        }
     866    } elseif ( strpos( $attr['caption'], '<' ) !== false ) {
     867        $attr['caption'] = wp_kses( $attr['caption'], 'post' );
    866868    }
    867869
Note: See TracChangeset for help on using the changeset viewer.