WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/20/2016 10:03:52 PM (4 years ago)
Author:
jeremyfelt
Message:

Multisite: Introduce WP_Site_Query

Provides a consistent way to query $wpdb->blogs for WP_Site objects based on domain, path, site ID, network ID, and more.

Introduces and uses update_site_cache() and _prime_site_caches() to maintain a cached list of WP_Site objects for use in multiple queries.

Props spacedmonkey, flixos90, DrewAPicture, jeremyfelt, ocean90.
See #35791.

File:
1 edited

Legend:

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

    r37342 r37477  
    492492            'post_date', 'post_date_gmt', 'post_modified',
    493493            'post_modified_gmt', 'comment_date', 'comment_date_gmt',
    494             'user_registered',
     494            'user_registered', 'registered', 'last_updated',
    495495        );
    496496
     
    526526                    'user_registered',
    527527                ),
     528                $wpdb->blogs => array(
     529                    'registered',
     530                    'last_updated',
     531                ),
    528532            );
    529533
Note: See TracChangeset for help on using the changeset viewer.