You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* : Retry downloads without certificate validation if TLS handshake fails. Note: This makes the request vulnerable to a MITM attack.
730
730
*
731
+
* [--auto-update-indicated]
732
+
* : Only update plugins where the server response indicates an automatic update. Updates to the version indicated by the server, not necessarily the latest version. Cannot be used with `--version`, `--minor`, or `--patch`.
Copy file name to clipboardExpand all lines: src/Theme_Command.php
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -691,6 +691,9 @@ public function get( $args, $assoc_args ) {
691
691
* [--insecure]
692
692
* : Retry downloads without certificate validation if TLS handshake fails. Note: This makes the request vulnerable to a MITM attack.
693
693
*
694
+
* [--auto-update-indicated]
695
+
* : Only update themes where the server response indicates an automatic update. Updates to the version indicated by the server, not necessarily the latest version. Cannot be used with `--version`, `--minor`, or `--patch`.
696
+
*
694
697
* ## EXAMPLES
695
698
*
696
699
* # Update multiple themes
@@ -741,6 +744,11 @@ public function get( $args, $assoc_args ) {
WP_CLI::error( 'Cannot use --minor or --patch with --auto-update-indicated. The version is determined by the server.' );
590
+
}
591
+
592
+
// Don't allow item names to be specified with --auto-update-indicated.
593
+
if ( ! empty( $args ) ) {
594
+
WP_CLI::error( "Cannot specify {$this->item_type} names with --auto-update-indicated. This flag updates all {$this->item_type}s with server-indicated automatic updates." );
595
+
}
596
+
597
+
// Get all items with their update info.
598
+
$items = $this->get_item_list();
599
+
600
+
// Filter to only include items where auto_update_indicated is true.
0 commit comments