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