Skip to content

Commit

Permalink
Merge pull request #143 from ernilambar/139-fix-php-warning
Browse files Browse the repository at this point in the history
Fix PHP warning
  • Loading branch information
mrsdizzie committed Apr 15, 2024
2 parents 024fe42 + 3482307 commit 38d9ee3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/RestCommand.php
Expand Up @@ -171,7 +171,7 @@ public function list_items( $args, $assoc_args ) {

if ( ! empty( $assoc_args['fields'] ) ) {
foreach( $items as $key => $item ) {
$items[ $key ] = self::limit_item_to_fields( $item, $fields );
$items[ $key ] = self::limit_item_to_fields( $item, $assoc_args['fields'] );
}
}

Expand Down

0 comments on commit 38d9ee3

Please sign in to comment.