Make WordPress Core


Ignore:
Timestamp:
06/10/2015 06:49:38 AM (7 years ago)
Author:
jeremyfelt
Message:

Improve information displayed in a network's sites list table

  • Better support for arbitrary domain/path combinations by displaying the URL in the primary column rather than Path or Domain.
  • Show a cached count of total users per site as a more useful data point rather than the first 5 users.
  • Clear that cached count of users for a site when a user is added to the site via add_user_to_blog().

Props @ocean90.
Fixes #32434.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-functions.php

    r32650 r32718  
    205205    do_action( 'add_user_to_blog', $user_id, $role, $blog_id );
    206206    wp_cache_delete( $user_id, 'users' );
     207    wp_cache_delete( $blog_id . '_user_count', 'blog-details' );
    207208    restore_current_blog();
    208209    return true;
Note: See TracChangeset for help on using the changeset viewer.