[wp-trac] [WordPress Trac] #50799: Clean orphaned custom database tables

WordPress Trac noreply at wordpress.org
Fri Jan 27 12:23:41 UTC 2023


#50799: Clean orphaned custom database tables
-----------------------------+----------------------
 Reporter:  stuffradio       |       Owner:  (none)
     Type:  feature request  |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  Site Health      |     Version:
 Severity:  normal           |  Resolution:  wontfix
 Keywords:                   |     Focuses:
-----------------------------+----------------------
Changes (by Clorith):

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


Comment:

 I'm thinking this feels more like a plugin territory case, let me
 elaborate.

 From the perspective of core, it's not possible to know which plugin or
 theme has introduced any custom database tables, or other database
 entries, and it's not really in scope for core to maintain a reference of
 this kind of information.

 It would also be "dangerous" for core to offer direct database
 manipulation alternatives, so saying "here are tables not added by core"
 as a catch-all would potentially lead to someone reading an article on
 website performance, and removing them via user interfaces in core.

 My view on the core approach to Site Health is that users should be
 presented with actionable items, that means no options require user
 interactions to make the right choices (to this extent), but simple action
 buttons that will do what needs doing, without fear of breaking their
 site.

 There are [https://wordpress.org/plugins/search/database+cleaner/ various
 plugins already that specialize in this though], and I believe this is
 best left to them. On this basis I'm marking this as `wontfix` at this
 time, but please feel free to provide any new information in the ticket,
 and it is possible to re-open them in the future if this approach should
 ever be taken.

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


More information about the wp-trac mailing list