[wp-trac] [WordPress Trac] #63078: plugins_api() Default Argument Issue: 'downloaded' Not Set to True
WordPress Trac
noreply at wordpress.org
Mon Mar 10 20:42:30 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):
Hi @wpessential,
Thanks for raising the ticket. I've reviewed the core code and found that
the downloaded parameter is part of the fields in the argument. According
to the documentation, the `downloaded` parameter is set to true by
default, which means that the response from the API
**`api.wordpress.org/plugins/`**) will include the `downloaded` field by
default.
To clarify, the plugin_api() function makes a remote request to
`api.wordpress.org/plugins/` to fetch plugin details. As part of the
response, the downloaded field will be included unless you specify
otherwise. If you want to exclude this field from the response, you can
pass `'fields' => array( 'downloaded' => false )` in the arguments.
For further reference, you can check the Codex documentation here:
https://codex.wordpress.org/WordPress.org_API#:~:text=update%2Dcheck/1.1/-,Plugins,-https%3A//api.wordpress
Let me know if you have any questions!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63078#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list