[wp-trac] [WordPress Trac] #40821: Add filter to `wpmu_delete_blog()` to overwrite ability to drop tables

WordPress Trac noreply at wordpress.org
Fri May 19 17:05:24 UTC 2017


#40821: Add filter to `wpmu_delete_blog()` to overwrite ability to drop tables
--------------------------------+------------------------------
 Reporter:  mermel              |       Owner:
     Type:  enhancement         |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Networks and Sites  |     Version:  trunk
 Severity:  normal              |  Resolution:
 Keywords:                      |     Focuses:  multisite
--------------------------------+------------------------------

Comment (by johnjamesjacoby):

 Hi @mermel, thanks for the ticket and patch!

 I, for one, think something like this is a great idea. There are a few
 historical things that make doing this a bit more complicated than your
 patch, but you're on the right track. See: #40280

 Also, today, you *can* filter `wpmu_drop_tables`, but that will still
 delete the row from `wp_blogs` and media, so it does work differently than
 the proposed patch does (which is to short-circuit all deletion, including
 `wp_blogs` and media.)

 You can expect this ticket to go through several days/weeks with of
 conversation, and iterations on the patch to happen while it's discussed
 more deeply. You're also welcome to join the #core-multisite channel in
 the WordPress Slack if you'd like to discuss this in real-time.

 (Tangent: I always forget this function is admin-only.)

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


More information about the wp-trac mailing list