[wp-trac] [WordPress Trac] #46832: Notice or Warning if a plugin create table and do not delete them

WordPress Trac noreply at wordpress.org
Mon Apr 8 11:13:48 UTC 2019


#46832: Notice or Warning if a plugin create table and do not delete them
----------------------------+-----------------------------
 Reporter:  sebastienserre  |      Owner:  (none)
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Plugins         |    Version:
 Severity:  normal          |   Keywords:  2nd-opinion
  Focuses:                  |
----------------------------+-----------------------------
 Hello

 Lots of plugins are creating their own tables but they don't delete them
 when the plugin is deleted or deactivated.

 Is a way exists (maybe with Healthsite) to check on deactivation if a
 {{{
 CREATE TABLE
 }}}
 exists and if so, if the `register_deactivation_hook()` is used...

 If not used, surely tables are not deleted so  => notices

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


More information about the wp-trac mailing list