[wp-trac] [WordPress Trac] #57249: plugin_folder parameter in get_plugins returns empty array
WordPress Trac
noreply at wordpress.org
Mon Dec 5 11:08:56 UTC 2022
#57249: plugin_folder parameter in get_plugins returns empty array
--------------------------+----------------------
Reporter: antonynz | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Plugins | Version: trunk
Severity: minor | Resolution: invalid
Keywords: | Focuses:
--------------------------+----------------------
Changes (by SergeyBiryukov):
* milestone: Awaiting Review =>
Comment:
Thanks for the follow-up!
Replying to [comment:2 antonynz]:
> > Looking at usage in Core, `$plugin_folder` expect a relative path to a
plugin folder : `get_plugins('/classic-editor');`.
>
> You're right. I should have looked further into the function. The
documentation didn't have any specific examples
Sounds like it might be a good idea to improve the function description
and add an example or two, feel free to reopen the ticket if you have any
suggestions to make the description more helpful.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57249#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list