Changeset 4906 for sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/wp-cli-commands/rewrite-rules.php
- Timestamp:
- 02/15/2017 02:32:16 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
r4574 r4906 21 21 $error = ''; 22 22 $sites = wp_get_sites( array( 'limit' => false ) ); 23 $notify = new \cli\progress\Bar( sprintf( 'Processing %d sites', count( $sites ) ), count( $sites ) ); 23 24 24 25 WP_CLI::line(); … … 53 54 } 54 55 55 if ( $success ) { 56 WP_CLI::line( sprintf( '%s: Flushed', $display_url ) ); 57 } else { 56 if ( ! $success ) { 58 57 WP_CLI::warning( sprintf( '%s: Failed with error: %s', $display_url, $error ) ); 59 58 } 59 60 $notify->tick(); 60 61 } 62 63 $notify->finish(); 61 64 62 65 $execution_time = microtime( true ) - $start_timestamp;
Note: See TracChangeset
for help on using the changeset viewer.