Skip to content
Merged
Prev Previous commit
Next Next commit
set update_version empty string instead of null
  • Loading branch information
sejas committed Nov 10, 2023
commit 9749bd2a293c12609ef4df95741453438e9029d1
4 changes: 4 additions & 0 deletions src/WP_CLI/CommandWithUpgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,10 @@ protected function _list( $_, $assoc_args ) {
$item['version'] = '';
}

if ( empty( $item['update_version'] ) ) {
$item['update_version'] = '';
}

foreach ( $item as $field => &$value ) {
if ( 'update' === $field ) {
if ( true === $value ) {
Expand Down