@@ 298-306 (lines=9) @@ | ||
295 | esc_url( get_site_url() ) |
|
296 | ) ); |
|
297 | sleep(1); // Take a breath |
|
298 | foreach ( $options_to_reset['jp_options'] as $option_to_reset ) { |
|
299 | if ( ! $is_dry_run ) { |
|
300 | Jetpack_Options::delete_option( $option_to_reset ); |
|
301 | usleep( 100000 ); |
|
302 | } |
|
303 | ||
304 | /* translators: This is the result of an action. The option named %s was reset */ |
|
305 | WP_CLI::success( sprintf( __( '%s option reset', 'jetpack' ), $option_to_reset ) ); |
|
306 | } |
|
307 | ||
308 | // Reset the WP options |
|
309 | WP_CLI::line( __( "Resetting the jetpack options stored in wp_options...\n", "jetpack" ) ); |
|
@@ 311-318 (lines=8) @@ | ||
308 | // Reset the WP options |
|
309 | WP_CLI::line( __( "Resetting the jetpack options stored in wp_options...\n", "jetpack" ) ); |
|
310 | usleep( 500000 ); // Take a breath |
|
311 | foreach ( $options_to_reset['wp_options'] as $option_to_reset ) { |
|
312 | if ( ! $is_dry_run ) { |
|
313 | delete_option( $option_to_reset ); |
|
314 | usleep( 100000 ); |
|
315 | } |
|
316 | /* translators: This is the result of an action. The option named %s was reset */ |
|
317 | WP_CLI::success( sprintf( __( '%s option reset', 'jetpack' ), $option_to_reset ) ); |
|
318 | } |
|
319 | ||
320 | // Reset to default modules |
|
321 | WP_CLI::line( __( "Resetting default modules...\n", "jetpack" ) ); |