Skip to content

Commit 1e77372

Browse files
committed
autofix linting errors
1 parent 9eebddd commit 1e77372

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/wp-includes/shortcodes.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ function do_shortcodes_in_html_tags( $content, $ignore_html, $tagnames ) {
470470
);
471471
$content = strtr( $content, $trans );
472472

473-
$trans = array(
473+
$trans = array(
474474
'[' => '[',
475475
']' => ']',
476476
);
@@ -547,7 +547,13 @@ function do_shortcodes_in_html_tags( $content, $ignore_html, $tagnames ) {
547547
/**
548548
* Prevent escaped shortcodes to break the attribute reverting html chars back to brackets
549549
*/
550-
$new_attr = strtr( $new_attr, array( '[' => '[', ']' => ']' ));
550+
$new_attr = strtr(
551+
$new_attr,
552+
array(
553+
'[' => '[',
554+
']' => ']',
555+
)
556+
);
551557

552558
// Sanitize the shortcode output using KSES.
553559
$new_attr = wp_kses_one_attr( $new_attr, $elname );

0 commit comments

Comments
 (0)