From 32f5aacba77be0fa509537602ecea94ec9e14a3c Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 25 Feb 2018 16:35:58 +0000 Subject: [PATCH] Coding Standards: Fix code indent in `unescape_invalid_shortcodes()`. Props joelcj91, GaryJ. Fixes #43346. git-svn-id: https://develop.svn.wordpress.org/trunk@42738 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/shortcodes.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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; } /**