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