class.jetpack-cli.php 1 location
|
@@ 413-419 (lines=7) @@
|
| 410 |
|
* Clear the whitelist |
| 411 |
|
*/ |
| 412 |
|
if ( isset( $args[1] ) && 'clear' == $args[1] ) { |
| 413 |
|
if ( ! empty( $whitelist ) ) { |
| 414 |
|
$whitelist = array(); |
| 415 |
|
jetpack_protect_save_whitelist( $whitelist ); |
| 416 |
|
WP_CLI::success( __( 'Cleared all whitelisted IPs', 'jetpack' ) ); |
| 417 |
|
} else { |
| 418 |
|
WP_CLI::line( __( 'Whitelist is empty.', "jetpack" ) ) ; |
| 419 |
|
} |
| 420 |
|
break; |
| 421 |
|
} |
| 422 |
|
|
modules/videopress-v2/admin.php 1 location
|
@@ 372-376 (lines=5) @@
|
| 369 |
|
|
| 370 |
|
$attachment_id = create_local_media_library_for_videopress_guid( $guid ); |
| 371 |
|
|
| 372 |
|
if ( $attachment_id && ! is_wp_error( $attachment_id ) ) { |
| 373 |
|
WP_CLI::success( sprintf( __( 'The video has been imported as Attachment ID %d', 'jetpack' ), $attachment_id ) ); |
| 374 |
|
} else { |
| 375 |
|
WP_CLI::error( __( 'An error has been encountered.', 'jetpack' ) ); |
| 376 |
|
} |
| 377 |
|
} |
| 378 |
|
} |
| 379 |
|
|