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