[wp-trac] [WordPress Trac] #49590: Hello Dolly default plugin and get_plugins()
WordPress Trac
noreply at wordpress.org
Sat Mar 7 09:55:01 UTC 2020
#49590: Hello Dolly default plugin and get_plugins()
--------------------------+-----------------------------
Reporter: xFireFartx | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Hi,
I just noticed something weird: The hello-dolly plugin which is included
by default on wordpress installs is just added as hello.php in the plugins
folder.
This causes the get_plugins() call to return only hello.php as a plugin
slug for this as it is not in a folder with the slug name like in the
example over here:
https://codex.wordpress.org/Function_Reference/get_plugins
Can we maybe move the plugin into the folder hello-dolly by default so it
behaves like a real plugin? I think there is no other way to get the slug
without parsing the PluginURI field which I would like to avoid.
Current output from get_plugins():
{{{
[hello.php] => Array
(
[Name] => Hello Dolly
[PluginURI] => http://wordpress.org/plugins/hello-dolly/
[Version] => 1.7.2
[Description] => This is not just a plugin, it symbolizes the
hope and enthusiasm of an entire generation summed up in two words sung
most famously by Louis Armstrong: Hello, Dolly. When activated you will
randomly see a lyric from <cite>Hello, Dolly</cite> in the upper right of
your admin screen on every page.
[Author] => Matt Mullenweg
[AuthorURI] => http://ma.tt/
[TextDomain] =>
[DomainPath] =>
[Network] =>
[RequiresWP] =>
[RequiresPHP] =>
[Title] => Hello Dolly
[AuthorName] => Matt Mullenweg
)
}}}
This behaviour is present with 5.4 beta 1
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49590>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list