Make WordPress Core

Ticket #49239: admin-header.php.patch

File admin-header.php.patch, 843 bytes (added by pikamander2, 6 years ago)
  • admin-header.php

     
    4444        $admin_title = get_bloginfo( 'name' );
    4545}
    4646
    47 if ( $admin_title == $title ) {
     47if ( $admin_title === $title ) {
    4848        /* translators: Admin screen title. %s: Admin screen name. */
    4949        $admin_title = sprintf( __( '%s — WordPress' ), $title );
    5050} else {
     
    148148 */
    149149do_action( 'admin_head' );
    150150
    151 if ( get_user_setting( 'mfold' ) == 'f' ) {
     151if ( 'f' === get_user_setting( 'mfold' ) ) {
    152152        $admin_body_class .= ' folded';
    153153}
    154154
     
    288288 */
    289289do_action( 'all_admin_notices' );
    290290
    291 if ( $parent_file == 'options-general.php' ) {
     291if ( 'options-general.php' === $parent_file ) {
    292292        require( ABSPATH . 'wp-admin/options-head.php' );
    293293}