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.


Built from https://develop.svn.wordpress.org/trunk@59941


git-svn-id: http://core.svn.wordpress.org/trunk@59283 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb
2025-03-05 23:12:27 +00:00
parent c7763892d5
commit db2a4a9cad
2 changed files with 4 additions and 4 deletions

View File

@@ -1003,7 +1003,7 @@ final class WP_Screen {
if ( 'post' === $this->base ) { if ( 'post' === $this->base ) {
$expand = '<fieldset class="editor-expand hidden"><legend>' . __( 'Additional settings' ) . '</legend><label for="editor-expand-toggle">'; $expand = '<fieldset class="editor-expand hidden"><legend>' . __( 'Additional settings' ) . '</legend><label for="editor-expand-toggle">';
$expand .= '<input type="checkbox" id="editor-expand-toggle" ' . checked( get_user_setting( 'editor_expand', 'on' ), 'on', false ) . ' />'; $expand .= '<input type="checkbox" id="editor-expand-toggle"' . checked( get_user_setting( 'editor_expand', 'on' ), 'on', false ) . ' />';
$expand .= __( 'Enable full-height editor and distraction-free functionality.' ) . '</label></fieldset>'; $expand .= __( 'Enable full-height editor and distraction-free functionality.' ) . '</label></fieldset>';
$this->_screen_settings = $expand; $this->_screen_settings = $expand;
} }
@@ -1134,7 +1134,7 @@ final class WP_Screen {
} }
} }
echo '<label for="wp_welcome_panel-hide">'; echo '<label for="wp_welcome_panel-hide">';
echo '<input type="checkbox" id="wp_welcome_panel-hide" ' . checked( (bool) $welcome_checked, true, false ) . ' />'; echo '<input type="checkbox" id="wp_welcome_panel-hide"' . checked( (bool) $welcome_checked, true, false ) . ' />';
echo _x( 'Welcome', 'Welcome panel' ) . "</label>\n"; echo _x( 'Welcome', 'Welcome panel' ) . "</label>\n";
} }
?> ?>
@@ -1183,7 +1183,7 @@ final class WP_Screen {
$id = "$column-hide"; $id = "$column-hide";
echo '<label>'; echo '<label>';
echo '<input class="hide-column-tog" name="' . $id . '" type="checkbox" id="' . $id . '" value="' . $column . '" ' . checked( ! in_array( $column, $hidden, true ), true, false ) . ' />'; echo '<input class="hide-column-tog" name="' . $id . '" type="checkbox" id="' . $id . '" value="' . $column . '"' . checked( ! in_array( $column, $hidden, true ), true, false ) . ' />';
echo "$title</label>\n"; echo "$title</label>\n";
} }
?> ?>

View File

@@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.8-beta1-59940'; $wp_version = '6.8-beta1-59941';
/** /**
* 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.