Changeset 8645 for sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/wp-cli-commands/miscellaneous.php
- Timestamp:
- 04/16/2019 10:03:17 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/wp-cli-commands/miscellaneous.php
r7470 r8645 46 46 47 47 foreach ( $sites as $site ) { 48 switch_to_blog( $site ['blog_id']);48 switch_to_blog( $site->blog_id ); 49 49 50 50 $site_domain = parse_url( get_option( 'siteurl' ) ); … … 52 52 53 53 // Skip sites that are above the requested maximum site ID 54 if ( $max_site_id && $site ['blog_id']> $max_site_id ) {54 if ( $max_site_id && $site->blog_id > $max_site_id ) { 55 55 $results[] = array( $site_domain, 'skipped' ); 56 restore_current_blog(); 56 57 continue; 57 58 }
Note: See TracChangeset
for help on using the changeset viewer.