Making WordPress.org

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#1637 closed defect (bug) (invalid)

Plugins API query_plugins request doesn't respect 'fields' argument

Reported by: danielbachhuber's profile danielbachhuber Owned by:
Milestone: Priority: normal
Component: Plugin Directory Keywords:
Cc:

Change History (2)

#1 @ocean90
9 years ago

  • Resolution set to invalid
  • Status changed from new to closed

The API doesn't work like this.

The list of valid fields with their default values is listed at https://developer.wordpress.org/reference/functions/plugins_api/. name is not a valid field.
If you don't want to have a field in the response you have to make this explicit. Example: 'fields' => array( 'short_description' => false ).

Last edited 9 years ago by ocean90 (previous) (diff)

#2 @danielbachhuber
9 years ago

Ah, thanks for clarifying. I missed that.

Note: See TracTickets for help on using tickets.