Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Allow to select the status on wporg as a single field.
  • Loading branch information
janw-me committed Nov 10, 2023
commit 1cec36ea2e0d8fd17a42e16743786b1d5280b2e7
7 changes: 7 additions & 0 deletions src/Plugin_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -1282,6 +1282,13 @@ public function list_( $_, $assoc_args ) {
$this->check_wporg['update_date'] = in_array( 'wp_org_updated', $fields, true );
}

$field = Utils\get_flag_value( $assoc_args, 'field' );
if ( 'wp_org' === $field ) {
$this->check_wporg['status'] = true;
} elseif ( 'wp_org_updated' === $field ) {
$this->check_wporg['update_date'] = true;
}

parent::_list( $_, $assoc_args );
}

Expand Down