Ticket #40511: 40511.diff
File 40511.diff, 1.5 KB (added by , 8 years ago) |
---|
-
src/wp-includes/class-wp-site.php
233 233 public function __get( $key ) { 234 234 switch ( $key ) { 235 235 case 'id': 236 case 'userblog_id': 236 237 return (int) $this->blog_id; 237 238 case 'network_id': 238 239 return (int) $this->site_id; … … 270 271 switch ( $key ) { 271 272 case 'id': 272 273 case 'network_id': 274 case 'userblog_id': 273 275 return true; 274 276 case 'blogname': 275 277 case 'siteurl': … … 307 309 public function __set( $key, $value ) { 308 310 switch ( $key ) { 309 311 case 'id': 312 case 'userblog_id': 310 313 $this->blog_id = (string) $value; 311 314 break; 312 315 case 'network_id': -
src/wp-includes/user.php
656 656 $_sites = get_sites( $args ); 657 657 658 658 foreach ( $_sites as $site ) { 659 $sites[ $site->id ] = (object) array( 660 'userblog_id' => $site->id, 661 'blogname' => $site->blogname, 662 'domain' => $site->domain, 663 'path' => $site->path, 664 'site_id' => $site->network_id, 665 'siteurl' => $site->siteurl, 666 'archived' => $site->archived, 667 'mature' => $site->mature, 668 'spam' => $site->spam, 669 'deleted' => $site->deleted, 670 ); 659 $sites[ $site->id ] = $site; 671 660 } 672 661 } 673 662