mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-05 13:14:29 +00:00
Coding Standards: Use strict comparison in some wp-admin files.
Props pikamander2, mukesh27, SergeyBiryukov. Fixes #49239. git-svn-id: https://develop.svn.wordpress.org/trunk@47785 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -44,7 +44,7 @@ if ( is_network_admin() ) {
|
||||
$admin_title = get_bloginfo( 'name' );
|
||||
}
|
||||
|
||||
if ( $admin_title == $title ) {
|
||||
if ( $admin_title === $title ) {
|
||||
/* translators: Admin screen title. %s: Admin screen name. */
|
||||
$admin_title = sprintf( __( '%s — WordPress' ), $title );
|
||||
} else {
|
||||
@@ -147,7 +147,7 @@ do_action( "admin_head-{$hook_suffix}" ); // phpcs:ignore WordPress.NamingConven
|
||||
*/
|
||||
do_action( 'admin_head' );
|
||||
|
||||
if ( get_user_setting( 'mfold' ) == 'f' ) {
|
||||
if ( get_user_setting( 'mfold' ) === 'f' ) {
|
||||
$admin_body_class .= ' folded';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user