Make WordPress Core


Ignore:
Timestamp:
04/21/2023 09:48:41 AM (2 years ago)
Author:
SergeyBiryukov
Message:

Networks and Sites: Use is_main_site() in a few more places.

This updates some more instances of comparing site IDs on Sites and Users screens in network admin to use is_main_site() for clarity.

Follow-up to [12603], [13918], [22064], [38814], [41131], [55666].

See #58150.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/users.php

    r55418 r55672  
    9595
    9696                                foreach ( (array) $blogs as $details ) {
    97                                     if ( get_network()->site_id != $details->userblog_id ) { // Main blog is not a spam!
     97                                    if ( ! is_main_site( $details->userblog_id ) ) { // Main site is not a spam!
    9898                                        update_blog_status( $details->userblog_id, 'spam', '1' );
    9999                                    }
Note: See TracChangeset for help on using the changeset viewer.