Make WordPress Core

Changeset 59889


Ignore:
Timestamp:
02/28/2025 02:59:53 PM (2 months ago)
Author:
audrasjb
Message:

General: Add missing space before checked attributes in various WP_Screen functions.

Props kkmuffme, audrasjb.
Fixes #63037.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-screen.php

    r58419 r59889  
    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;
     
    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        }
     
    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        }
Note: See TracChangeset for help on using the changeset viewer.