diff --git a/src/wp-admin/includes/export.php b/src/wp-admin/includes/export.php index 4ddc210609..68a3942843 100644 --- a/src/wp-admin/includes/export.php +++ b/src/wp-admin/includes/export.php @@ -133,9 +133,9 @@ function export_wp( $args = array() ) { * @return string */ function wxr_cdata( $str ) { - if ( seems_utf8( $str ) == false ) + if ( ! seems_utf8( $str ) ) { $str = utf8_encode( $str ); - + } // $str = ent2ncr(esc_html($str)); $str = '', ']]]]>', $str ) . ']]>'; diff --git a/src/wp-admin/includes/menu.php b/src/wp-admin/includes/menu.php index f0e6d8662b..accc04b1b0 100644 --- a/src/wp-admin/includes/menu.php +++ b/src/wp-admin/includes/menu.php @@ -182,7 +182,7 @@ unset($id, $data, $subs, $first_sub); $separator_found = false; foreach ( $menu as $id => $data ) { if ( 0 == strcmp('wp-menu-separator', $data[4] ) ) { - if (false == $separator_found) { + if ( ! $separator_found ) { $separator_found = true; } else { unset($menu[$id]); diff --git a/src/wp-admin/includes/ms.php b/src/wp-admin/includes/ms.php index 38a589cae0..c3b1e7637b 100644 --- a/src/wp-admin/includes/ms.php +++ b/src/wp-admin/includes/ms.php @@ -453,9 +453,9 @@ function display_space_usage() { * @return int Max size in bytes */ function fix_import_form_size( $size ) { - if ( upload_is_user_over_quota( false ) == true ) + if ( upload_is_user_over_quota( false ) ) { return 0; - + } $available = get_upload_space_available(); return min( $size, $available ); } diff --git a/src/wp-admin/network/site-new.php b/src/wp-admin/network/site-new.php index 2fb59fc859..00ca3c9fc8 100644 --- a/src/wp-admin/network/site-new.php +++ b/src/wp-admin/network/site-new.php @@ -76,7 +76,7 @@ if ( isset($_REQUEST['action']) && 'add-site' == $_REQUEST['action'] ) { if ( !$user_id ) { // Create a new user with a random password $password = wp_generate_password( 12, false ); $user_id = wpmu_create_user( $domain, $password, $email ); - if ( false == $user_id ) + if ( false === $user_id ) wp_die( __( 'There was an error creating the user.' ) ); else wp_new_user_notification( $user_id, $password ); diff --git a/src/wp-admin/network/site-users.php b/src/wp-admin/network/site-users.php index 57a189b7ae..595ca45a5c 100644 --- a/src/wp-admin/network/site-users.php +++ b/src/wp-admin/network/site-users.php @@ -70,7 +70,7 @@ if ( $action ) { $password = wp_generate_password( 12, false); $user_id = wpmu_create_user( esc_html( strtolower( $user['username'] ) ), $password, esc_html( $user['email'] ) ); - if ( false == $user_id ) { + if ( false === $user_id ) { $update = 'err_new_dup'; } else { wp_new_user_notification( $user_id, $password );