mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-13 06:07:23 +01:00
Fix do_shortcode('<[shortcode]')
edge case.
Props miqrogroove. Merges [33499] to the 3.9 branch. See #33116. Built from https://develop.svn.wordpress.org/branches/3.9@33566 git-svn-id: http://core.svn.wordpress.org/branches/3.9@33533 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
996d8547e3
commit
31ebb3f94b
@ -355,6 +355,11 @@ function do_shortcodes_in_html_tags( $content, $ignore_html ) {
|
|||||||
|
|
||||||
$attributes = wp_kses_attr_parse( $element );
|
$attributes = wp_kses_attr_parse( $element );
|
||||||
if ( false === $attributes ) {
|
if ( false === $attributes ) {
|
||||||
|
// Some plugins are doing things like [name] <[email]>.
|
||||||
|
if ( 1 === preg_match( '%^<\s*\[\[?[^\[\]]+\]%', $element ) ) {
|
||||||
|
$element = preg_replace_callback( "/$pattern/s", 'do_shortcode_tag', $element );
|
||||||
|
}
|
||||||
|
|
||||||
// Looks like we found some crazy unfiltered HTML. Skipping it for sanity.
|
// Looks like we found some crazy unfiltered HTML. Skipping it for sanity.
|
||||||
$element = strtr( $element, $trans );
|
$element = strtr( $element, $trans );
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user