mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-20 19:24:32 +00:00
Coding Standards: Use strict comparison where count() is involved.
Follow-up to [1636], [6974], [8114], [10322], [13326], [14760], [18006], [18541], [19743], [23249], [24115], [33359]. Props aristath, poena, afercia, SergeyBiryukov. See #57839. git-svn-id: https://develop.svn.wordpress.org/trunk@55642 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -274,7 +274,7 @@ function remove_user_from_blog( $user_id, $blog_id = 0, $reassign = 0 ) {
|
||||
$user->remove_all_caps();
|
||||
|
||||
$blogs = get_blogs_of_user( $user_id );
|
||||
if ( count( $blogs ) == 0 ) {
|
||||
if ( count( $blogs ) === 0 ) {
|
||||
update_user_meta( $user_id, 'primary_blog', '' );
|
||||
update_user_meta( $user_id, 'source_domain', '' );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user