@@ 314-322 (lines=9) @@ | ||
311 | ) |
|
312 | ); |
|
313 | sleep( 1 ); // Take a breath |
|
314 | foreach ( $options_to_reset['jp_options'] as $option_to_reset ) { |
|
315 | if ( ! $is_dry_run ) { |
|
316 | Jetpack_Options::delete_option( $option_to_reset ); |
|
317 | usleep( 100000 ); |
|
318 | } |
|
319 | ||
320 | /* translators: This is the result of an action. The option named %s was reset */ |
|
321 | WP_CLI::success( sprintf( __( '%s option reset', 'jetpack' ), $option_to_reset ) ); |
|
322 | } |
|
323 | ||
324 | // Reset the WP options |
|
325 | WP_CLI::line( __( "Resetting the jetpack options stored in wp_options...\n", 'jetpack' ) ); |
|
@@ 327-334 (lines=8) @@ | ||
324 | // Reset the WP options |
|
325 | WP_CLI::line( __( "Resetting the jetpack options stored in wp_options...\n", 'jetpack' ) ); |
|
326 | usleep( 500000 ); // Take a breath |
|
327 | foreach ( $options_to_reset['wp_options'] as $option_to_reset ) { |
|
328 | if ( ! $is_dry_run ) { |
|
329 | delete_option( $option_to_reset ); |
|
330 | usleep( 100000 ); |
|
331 | } |
|
332 | /* translators: This is the result of an action. The option named %s was reset */ |
|
333 | WP_CLI::success( sprintf( __( '%s option reset', 'jetpack' ), $option_to_reset ) ); |
|
334 | } |
|
335 | ||
336 | // Reset to default modules |
|
337 | WP_CLI::line( __( "Resetting default modules...\n", 'jetpack' ) ); |