Changeset 4908
- Timestamp:
- 02/15/2017 02:32:25 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/wp-cli-commands/rewrite-rules.php
r4907 r4908 20 20 $start_timestamp = microtime( true ); 21 21 $error = ''; 22 $sites = get_sites( array( 'number' => 10000 ) );22 $sites = get_sites( array( 'number' => 10000, 'public' => 1 ) ); 23 23 $notify = new \cli\progress\Bar( sprintf( 'Processing %d sites', count( $sites ) ), count( $sites ) ); 24 24 … … 26 26 27 27 foreach ( $sites as $site ) { 28 if ( $site->deleted ) { 29 continue; 30 } 31 28 32 $nonce = wp_create_nonce( 'flush-rewrite-rules-everywhere-' . $site->blog_id ); 29 33 $display_url = $site->domain . rtrim( $site->path, '/' );
Note: See TracChangeset
for help on using the changeset viewer.