Skip to content

Commit

Permalink
Coding Standards: Fix code indent in unescape_invalid_shortcodes().
Browse files Browse the repository at this point in the history
Props joelcj91, GaryJ.
Fixes #43346.

git-svn-id: https://develop.svn.wordpress.org/trunk@42738 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Feb 25, 2018
1 parent 74ccb68 commit 32f5aac
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/wp-includes/shortcodes.php
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 32f5aac

Please sign in to comment.