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

WordPress Trac noreply at wordpress.org
Tue Jul 26 17:59:26 UTC 2016


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

 * keywords:   => has-patch


Comment:

 attachment:37470.2.diff patches the wp_ajax_update_plugin() function to
 deactivate the plugin prior ro upgrading it (just like the normal upgrade
 call does), and then it reactivates it afterward, even if the main plugin
 file name changed.

 This makes the Shiny update method behave more like a normal update in
 this respect, but without all the iframe sadness.

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


More information about the wp-trac mailing list