Skip to content

Commit b6835c1

Browse files
committed
General: Remove extra spaces added before checked() functions used in WP_Screen class.
This reverts [59889] as `__checked_selected_helper()` actually adds a leading space before the `checked` attribute. Props kkmuffme. Unprops audrasjb. Fixes #63037. git-svn-id: https://develop.svn.wordpress.org/trunk@59941 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 6f1628d commit b6835c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/wp-admin/includes/class-wp-screen.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,7 @@ public function show_screen_options() {
10031003

10041004
if ( 'post' === $this->base ) {
10051005
$expand = '<fieldset class="editor-expand hidden"><legend>' . __( 'Additional settings' ) . '</legend><label for="editor-expand-toggle">';
1006-
$expand .= '<input type="checkbox" id="editor-expand-toggle" ' . checked( get_user_setting( 'editor_expand', 'on' ), 'on', false ) . ' />';
1006+
$expand .= '<input type="checkbox" id="editor-expand-toggle"' . checked( get_user_setting( 'editor_expand', 'on' ), 'on', false ) . ' />';
10071007
$expand .= __( 'Enable full-height editor and distraction-free functionality.' ) . '</label></fieldset>';
10081008
$this->_screen_settings = $expand;
10091009
}
@@ -1134,7 +1134,7 @@ public function render_meta_boxes_preferences() {
11341134
}
11351135
}
11361136
echo '<label for="wp_welcome_panel-hide">';
1137-
echo '<input type="checkbox" id="wp_welcome_panel-hide" ' . checked( (bool) $welcome_checked, true, false ) . ' />';
1137+
echo '<input type="checkbox" id="wp_welcome_panel-hide"' . checked( (bool) $welcome_checked, true, false ) . ' />';
11381138
echo _x( 'Welcome', 'Welcome panel' ) . "</label>\n";
11391139
}
11401140
?>
@@ -1183,7 +1183,7 @@ public function render_list_table_columns_preferences() {
11831183

11841184
$id = "$column-hide";
11851185
echo '<label>';
1186-
echo '<input class="hide-column-tog" name="' . $id . '" type="checkbox" id="' . $id . '" value="' . $column . '" ' . checked( ! in_array( $column, $hidden, true ), true, false ) . ' />';
1186+
echo '<input class="hide-column-tog" name="' . $id . '" type="checkbox" id="' . $id . '" value="' . $column . '"' . checked( ! in_array( $column, $hidden, true ), true, false ) . ' />';
11871187
echo "$title</label>\n";
11881188
}
11891189
?>

0 commit comments

Comments
 (0)