diff --git a/wp-includes/shortcodes.php b/wp-includes/shortcodes.php index 2a9f196304..992e71be65 100644 --- a/wp-includes/shortcodes.php +++ b/wp-includes/shortcodes.php @@ -355,6 +355,11 @@ function do_shortcodes_in_html_tags( $content, $ignore_html ) { $attributes = wp_kses_attr_parse( $element ); 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. $element = strtr( $element, $trans ); continue;