[wp-trac] [WordPress Trac] #59402: Plugin cannot be uninstalled if uninstall crashes

WordPress Trac noreply at wordpress.org
Wed Sep 20 06:59:37 UTC 2023


#59402: Plugin cannot be uninstalled if uninstall crashes
--------------------------+-----------------------------
 Reporter:  kkmuffme      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 If a plugin register the "register_uninstall_hook" conditionally (e.g.
 only on activation,...) a plugin cannot be uninstalled anymore if it exits
 (e.g. timeout,...) during uninstall.

 This is because the uninstall file/callback is removed from the option
 before the actual uninstall happens:
 https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-
 admin/includes/plugin.php#L1253
 https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-
 admin/includes/plugin.php#L1269

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59402>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list