OSDN Git Service
(root)
/
wvm
/
wvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fb95a3
)
Force the version field if not exist so it shows up in the table
author
tolgap
<tolga@hoppinger.com>
Fri, 10 May 2013 13:16:31 +0000
(15:16 +0200)
committer
tolgap
<tolga@hoppinger.com>
Fri, 10 May 2013 13:16:31 +0000
(15:16 +0200)
php/WP_CLI/CommandWithUpgrade.php
patch
|
blob
|
history
diff --git
a/php/WP_CLI/CommandWithUpgrade.php
b/php/WP_CLI/CommandWithUpgrade.php
index
f8b349a
..
4ffe023
100644
(file)
--- a/
php/WP_CLI/CommandWithUpgrade.php
+++ b/
php/WP_CLI/CommandWithUpgrade.php
@@
-226,6
+226,9
@@
abstract class CommandWithUpgrade extends \WP_CLI_Command {
foreach ( $items as $item ) {
$object = new \stdClass;
+ if ( empty( $item['version'] ) )
+ $item['version'] = "";
+
foreach ( $item as $field => $value ) {
if ( $value === true ) {
$value = "available";