[wp-trac] [WordPress Trac] #49599: Wrong PHPDoc wp_get_active_and_valid_plugins

WordPress Trac noreply at wordpress.org
Sun Mar 8 18:48:44 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):

 Said differently, if you give a path returned by
 `wp_get_active_and_valid_plugins` and send it to `is_plugin_active` you
 won't get the result you expect, though the documentation both refers as
 "''relative to the plugins directory''".

 So this is wrong, i believe `wp_get_active_and_valid_plugins` should in
 fact return relative paths as the doc claims... but as said, this would
 break many things... so the easiest fix for now is surely to correct the
 documentation.

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


More information about the wp-trac mailing list