Changeset 56381 for trunk/src/wp-includes/class-wp-user-query.php
- Timestamp:
- 08/10/2023 10:24:29 AM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-user-query.php
r56353 r56381 1072 1072 $blog_id = absint( $args['blog_id'] ); 1073 1073 } 1074 if ( ( $args['has_published_posts'] && $blog_id ) || in_array( 'post_count', $ordersby, true ) ) { 1075 $switch = get_current_blog_id() !== $blog_id; 1074 1075 if ( $args['has_published_posts'] || in_array( 'post_count', $ordersby, true ) ) { 1076 $switch = $blog_id && get_current_blog_id() !== $blog_id; 1076 1077 if ( $switch ) { 1077 1078 switch_to_blog( $blog_id ); 1078 1079 } 1080 1079 1081 $last_changed .= wp_cache_get_last_changed( 'posts' ); 1082 1080 1083 if ( $switch ) { 1081 1084 restore_current_blog();
Note: See TracChangeset
for help on using the changeset viewer.