Changeset 32626
- Timestamp:
- 05/27/2015 09:22:09 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/user.php
r32541 r32626 1176 1176 'site_id' => $blog->site_id, 1177 1177 'siteurl' => $blog->siteurl, 1178 'archived' => 0,1179 'spam' => 0,1180 'deleted' => 01178 'archived' => $blog->archived, 1179 'spam' => $blog->spam, 1180 'deleted' => $blog->deleted, 1181 1181 ); 1182 1182 } … … 1205 1205 'site_id' => $blog->site_id, 1206 1206 'siteurl' => $blog->siteurl, 1207 'archived' => 0,1208 'spam' => 0,1209 'deleted' => 01207 'archived' => $blog->archived, 1208 'spam' => $blog->spam, 1209 'deleted' => $blog->deleted, 1210 1210 ); 1211 1211 } -
trunk/tests/phpunit/tests/user/multisite.php
r31623 r32626 92 92 93 93 // Passing true as the second parameter should retrieve ALL sites, even if marked. 94 $blog_ids_of_user = array_keys( get_blogs_of_user( $user1_id, true ) ); 95 $this->assertEquals( $blog_ids, $blog_ids_of_user ); 94 $blogs_of_user = get_blogs_of_user( $user1_id, true ); 95 $blog_ids_of_user = array_keys( $blogs_of_user ); 96 $this->assertEquals( $blog_ids, $blog_ids_of_user ); 97 98 // Check if sites are flagged as expected. 99 $this->assertEquals( 1, $blogs_of_user[ $blog_ids[0] ]->spam ); 100 $this->assertEquals( 1, $blogs_of_user[ $blog_ids[1] ]->archived ); 101 $this->assertEquals( 1, $blogs_of_user[ $blog_ids[2] ]->deleted ); 96 102 97 103 unset( $blog_ids[0] );
Note: See TracChangeset
for help on using the changeset viewer.