Coding Standards: Fix code indent in `unescape_invalid_shortcodes()`.

Props joelcj91, GaryJ.
Fixes #43346.
Built from https://develop.svn.wordpress.org/trunk@42738


git-svn-id: http://core.svn.wordpress.org/trunk@42568 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2018-02-25 16:36:30 +00:00
parent 505c2ddb61
commit 4d47bfce41
2 changed files with 9 additions and 8 deletions

View File

@ -458,14 +458,15 @@ function do_shortcodes_in_html_tags( $content, $ignore_html, $tagnames ) {
* @return string Content with placeholders removed. * @return string Content with placeholders removed.
*/ */
function unescape_invalid_shortcodes( $content ) { function unescape_invalid_shortcodes( $content ) {
// Clean up entire string, avoids re-parsing HTML. // Clean up entire string, avoids re-parsing HTML.
$trans = array( $trans = array(
'[' => '[', '[' => '[',
']' => ']', ']' => ']',
); );
$content = strtr( $content, $trans );
return $content; $content = strtr( $content, $trans );
return $content;
} }
/** /**

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.0-alpha-42737'; $wp_version = '5.0-alpha-42738';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.