[wp-trac] [WordPress Trac] #49599: Wrong PHPDoc wp_get_active_and_valid_plugins
WordPress Trac
noreply at wordpress.org
Sun Mar 8 18:39:39 UTC 2020
#49599: Wrong PHPDoc wp_get_active_and_valid_plugins
--------------------------+------------------------------
Reporter: herrvigg | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Plugins | Version: 5.3.2
Severity: normal | Resolution:
Keywords: | Focuses: docs
--------------------------+------------------------------
Comment (by herrvigg):
Sorry i even managed to mix everything up in my example with
plugin_basename... which is actually taking the absolute path, not
relative. So i've corrected my comment.
But here is a clear example of "relative path":
https://developer.wordpress.org/reference/functions/is_plugin_active/
{{{
is_plugin_active( string $plugin )
Determines whether a plugin is active.
$plugin
(string) (Required) Path to the plugin file relative to the plugins
directory.
}}}
"Relative to the plugins directory" means $plugin is expected to be e.g.
'jetpack/jetpack.php'.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49599#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list