OSDN Git Service

wp plugin get: remove unreliable 'update' field
authorscribu <mail@scribu.net>
Sun, 19 Jan 2014 17:22:47 +0000 (19:22 +0200)
committerscribu <mail@scribu.net>
Sun, 19 Jan 2014 17:22:50 +0000 (19:22 +0200)
we'd have to call wp_update_plugins() on each run, like we do for `wp
plugin status`

also, `wp theme get` doesn't have it

php/commands/plugin.php

index fd4932d..18465c5 100644 (file)
@@ -393,7 +393,6 @@ class Plugin_Command extends \WP_CLI\CommandWithUpgrade {
                        'version'     => $plugin_data['Version'],
                        'description' => wordwrap( $plugin_data['Description'] ),
                        'status'      => $this->get_status( $file ),
-                       'update'      => $this->has_update( $file ),
                );
 
                $formatter = $this->get_formatter( $assoc_args );