Skip to content

Commit 0a7602b

Browse files
committed
Show RequiresPlugins if available in plugin get command
1 parent 5619a55 commit 0a7602b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Plugin_Command.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -961,6 +961,10 @@ public function get( $args, $assoc_args ) {
961961
'status' => $this->get_status( $file ),
962962
];
963963

964+
if ( isset( $plugin_data['RequiresPlugins'] ) && ! empty( $plugin_data['RequiresPlugins'] ) ) {
965+
$plugin_obj->requires_plugins = $plugin_data['RequiresPlugins'];
966+
}
967+
964968
if ( empty( $assoc_args['fields'] ) ) {
965969
$plugin_array = get_object_vars( $plugin_obj );
966970
$assoc_args['fields'] = array_keys( $plugin_array );

0 commit comments

Comments
 (0)