[wp-trac] [WordPress Trac] #63078: plugins_api() Default Argument Issue: 'downloaded' Not Set to True

WordPress Trac noreply at wordpress.org
Tue Mar 11 14:07:50 UTC 2025


#63078: plugins_api() Default Argument Issue: 'downloaded' Not Set to True
--------------------------------------+------------------------------
 Reporter:  wpessential               |       Owner:  (none)
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Plugins                   |     Version:  6.7.2
 Severity:  minor                     |  Resolution:
 Keywords:  needs-dev-note has-patch  |     Focuses:
--------------------------------------+------------------------------

Comment (by debarghyabanerjee):

 Replying to [comment:3 wpessential]:
 Hummmm, yes, you're right. After reviewing the source code for
 `api.wordpress.org/plugins/info/`, I found the reason behind the issue.

 The downloaded field was set to true by default up until API version `1.1`
 (i.e., `/plugins/info/1.1/`). However, with the introduction of version
 `1.2`, the list of default fields changed, and now the following fields
 are set to true by default for plugin_information:

 'banners'
 'reviews'
 'active_installs'
 'contributors'
 'preview_link'
 'upgrade_notice'
 'business_model'
 'repository_url'
 'support_url'
 'commercial_support_url'

 It's worth noting that version `1.2` was introduced **7 years ago**, while
 the documentation was last updated **9 years ago**, meaning it provides
 inaccurate information.

 In my opinion, the documentation should be updated to reflect the current
 default fields. Instead of manually setting `'downloaded' => true`.

 You can reference the change in the source code here
 https://github.com/WordPress/wordpress.org/blob/trunk/wordpress.org/public_html
 /wp-content/plugins/plugin-directory/standalone/class-plugins-info-api-
 request.php#L73

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63078#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list