Changeset 43655 for trunk/src/wp-includes/ms-blogs.php
- Timestamp:
- 09/24/2018 03:22:01 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-blogs.php
r43654 r43655 59 59 function get_blogaddress_by_name( $blogname ) { 60 60 if ( is_subdomain_install() ) { 61 if ( $blogname == 'main') {61 if ( 'main' === $blogname ) { 62 62 $blogname = 'www'; 63 63 } … … 179 179 $blog_id = (int) $blog_id; 180 180 181 $all = $get_all == true? '' : 'short';181 $all = $get_all ? '' : 'short'; 182 182 $details = wp_cache_get( $blog_id . $all, 'blog-details' ); 183 183 184 184 if ( $details ) { 185 185 if ( ! is_object( $details ) ) { 186 if ( $details == -1) {186 if ( -1 == $details ) { 187 187 return false; 188 188 } else { … … 204 204 if ( $details ) { 205 205 if ( ! is_object( $details ) ) { 206 if ( $details == -1) {206 if ( -1 == $details ) { 207 207 return false; 208 208 } else { … … 1176 1176 } 1177 1177 1178 $users = get_users( array( 1179 'blog_id' => $site->id, 1180 'fields' => 'ids', 1181 ) ); 1178 $users = get_users( 1179 array( 1180 'blog_id' => $site->id, 1181 'fields' => 'ids', 1182 ) 1183 ); 1182 1184 1183 1185 // Remove users from the site. … … 1230 1232 $dir = $stack[ $index ]; 1231 1233 1232 // phpcs:disable Generic.PHP.NoSilencedErrors.Discouraged1234 // phpcs:disable WordPress.PHP.NoSilencedErrors.Discouraged 1233 1235 $dh = @opendir( $dir ); 1234 1236 if ( $dh ) { … … 1260 1262 } 1261 1263 1262 // phpcs:enable Generic.PHP.NoSilencedErrors.Discouraged1264 // phpcs:enable WordPress.PHP.NoSilencedErrors.Discouraged 1263 1265 if ( $switch ) { 1264 1266 restore_current_blog();
Note: See TracChangeset
for help on using the changeset viewer.