Skip to content

Commit 9749bd2

Browse files
committed
set update_version empty string instead of null
1 parent bc7c284 commit 9749bd2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/WP_CLI/CommandWithUpgrade.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,10 @@ protected function _list( $_, $assoc_args ) {
511511
$item['version'] = '';
512512
}
513513

514+
if ( empty( $item['update_version'] ) ) {
515+
$item['update_version'] = '';
516+
}
517+
514518
foreach ( $item as $field => &$value ) {
515519
if ( 'update' === $field ) {
516520
if ( true === $value ) {

0 commit comments

Comments
 (0)