Make WordPress Core


Ignore:
Timestamp:
09/14/2015 10:35:22 PM (10 years ago)
Author:
nbachiyski
Message:

Shortcodes: don't allow unclosed HTML elements in attributes

File:
1 edited

Legend:

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

    r33954 r34134  
    871871            $attr['caption'] = trim( $matches[2] );
    872872        }
     873    } elseif ( strpos( $attr['caption'], '<' ) !== false ) {
     874        $attr['caption'] = wp_kses( $attr['caption'], 'post' );
    873875    }
    874876
Note: See TracChangeset for help on using the changeset viewer.