[wp-trac] [WordPress Trac] #35791: WP_Site_Query class

WordPress Trac noreply at wordpress.org
Mon May 2 23:02:29 UTC 2016


#35791: WP_Site_Query class
-------------------------------------------------+-------------------------
 Reporter:  spacedmonkey                         |       Owner:  jeremyfelt
     Type:  task (blessed)                       |      Status:  reviewing
 Priority:  normal                               |   Milestone:  4.6
Component:  Networks and Sites                   |     Version:  4.4
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing needs-unit-  |     Focuses:  multisite
  tests                                          |
-------------------------------------------------+-------------------------

Comment (by spacedmonkey):

 35791-class.3.patch fixes some bugs/inconsistencies and includes minor
 improvements to make the unit tests pass.

 {{{#!php
 $last_changed = microtime();
 wp_cache_set( 'last_changed', $last_changed, 'sites' );
 }}}
 ms-blogs.php line  458. This was so the count were updated when sites are
 added / removed.

 {{{#!php
             /**
      * Converts an object to array.
          *
          * @since 4.6.0
          * @access public
          *
          * @return array Object as array.
          */
         public function to_array() {
                 return get_object_vars( $this );
         }
 }}}

 class-wp-site.php line 200. Missing method required by get_site()

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


More information about the wp-trac mailing list