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