- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-ms-sites-list-table.php
r43382 r43571 177 177 $total_sites = get_sites( 178 178 array_merge( 179 $args, array( 179 $args, 180 array( 180 181 'count' => true, 181 182 'offset' => 0, … … 276 277 if ( ! is_main_site( $blog['blog_id'] ) ) : 277 278 $blogname = untrailingslashit( $blog['domain'] . $blog['path'] ); 278 ?>279 ?> 279 280 <label class="screen-reader-text" for="blog_<?php echo $blog['blog_id']; ?>"> 280 281 <?php 281 282 printf( __( 'Select %s' ), $blogname ); 282 ?>283 ?> 283 284 </label> 284 285 <input type="checkbox" id="blog_<?php echo $blog['blog_id']; ?>" name="allblogs[]" value="<?php echo esc_attr( $blog['blog_id'] ); ?>" /> 285 <?php286 <?php 286 287 endif; 287 288 } … … 407 408 $user_count = wp_cache_get( $blog['blog_id'] . '_user_count', 'blog-details' ); 408 409 if ( ! $user_count ) { 409 $blog_users = new WP_User_Query( array( 410 'blog_id' => $blog['blog_id'], 411 'fields' => 'ID', 412 'number' => 1, 413 'count_total' => true, 414 ) ); 410 $blog_users = new WP_User_Query( 411 array( 412 'blog_id' => $blog['blog_id'], 413 'fields' => 'ID', 414 'number' => 1, 415 'count_total' => true, 416 ) 417 ); 415 418 $user_count = $blog_users->get_total(); 416 419 wp_cache_set( $blog['blog_id'] . '_user_count', $user_count, 'blog-details', 12 * HOUR_IN_SECONDS );
Note: See TracChangeset
for help on using the changeset viewer.