diff --git a/src/wp-includes/shortcodes.php b/src/wp-includes/shortcodes.php index da583251d8..0c7695e889 100644 --- a/src/wp-includes/shortcodes.php +++ b/src/wp-includes/shortcodes.php @@ -458,14 +458,15 @@ function do_shortcodes_in_html_tags( $content, $ignore_html, $tagnames ) { * @return string Content with placeholders removed. */ function unescape_invalid_shortcodes( $content ) { - // Clean up entire string, avoids re-parsing HTML. - $trans = array( - '[' => '[', - ']' => ']', - ); - $content = strtr( $content, $trans ); + // Clean up entire string, avoids re-parsing HTML. + $trans = array( + '[' => '[', + ']' => ']', + ); - return $content; + $content = strtr( $content, $trans ); + + return $content; } /**