[wp-trac] [WordPress Trac] #36935: Implement lazy-loading blog details in `WP_Site`

WordPress Trac noreply at wordpress.org
Tue Jun 14 22:39:12 UTC 2016


#36935: Implement lazy-loading blog details in `WP_Site`
-------------------------------------+------------------------
 Reporter:  flixos90                 |       Owner:  flixos90
     Type:  enhancement              |      Status:  assigned
 Priority:  normal                   |   Milestone:  4.6
Component:  Networks and Sites       |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  multisite
-------------------------------------+------------------------

Comment (by spacedmonkey):

 Just idea but we could do something like this as well.

 {{{#!php
 <?php
 function get_blog_details( $fields = null, $get_all = true ) {
         global $wpdb;
          if ( is_numeric( $fields ) && $get_all ) {
                return get_site( $fields );
          }
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36935#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list