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