[wp-trac] [WordPress Trac] #36709: Symlinked plugin path incorrectly registered during uninstall

WordPress Trac noreply at wordpress.org
Sat Apr 30 15:03:16 UTC 2016


#36709: Symlinked plugin path incorrectly registered during uninstall
--------------------------+-----------------------------
 Reporter:  andy          |       Owner:  ocean90
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.6
Component:  Plugins       |     Version:  3.9
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:  administration
--------------------------+-----------------------------
Changes (by ocean90):

 * owner:   => ocean90
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"37331"]:
 {{{
 #!CommitTicketReference repository="" revision="37331"
 Plugins: In `uninstall_plugin()` pass the plugin file to
 `wp_register_plugin_realpath()`.

 `wp_register_plugin_realpath()` calls `dirname( $file );` to remove the
 basename. The basename must be included in the argument or the symlinked
 directory won't be registered.

 Props andy.
 Fixes #36709.
 }}}

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


More information about the wp-trac mailing list