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