[wp-trac] [WordPress Trac] #37470: Shiny Updates: Erroneous Plugin Deactivation

WordPress Trac noreply at wordpress.org
Tue Jul 26 16:23:43 UTC 2016


#37470: Shiny Updates: Erroneous Plugin Deactivation
----------------------------+----------------------
 Reporter:  voldemortensen  |       Owner:
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:
Component:  Plugins         |     Version:  4.2.4
 Severity:  normal          |  Resolution:  invalid
 Keywords:                  |     Focuses:
----------------------------+----------------------
Changes (by Otto42):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 This is not unique to Shiny Updates, and has always been the case.
 Renaming a plugin and then updating to it will cause it to be deactivated.

 See the validate_active_plugins() and validate_plugin() functions, which
 have been around since 2.5:
 https://core.trac.wordpress.org/browser/trunk/src/wp-
 admin/includes/plugin.php#L908

 Specifically, validate_plugin() checks for the plugin file to exist, and
 if it doesn't, then validate_active_plugins() will specifically deactivate
 it, removing it from the active_plugins list.

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


More information about the wp-trac mailing list