[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 16:53:59 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              |   Keywords:
  Focuses:  multisite           |
--------------------------------+-----------------------------
 The function `wpmu_delete_blog( $blog_id, $drop = false )`  includes a
 flag to add the ability to drop tables.  There are some cases where we may
 want to prevent accidental deletion of tables, even when that flag is set
 to true.

 Adding a filter like: `$drop = apply_filters( 'wpmu_allow_drop_tables',
 $drop );` will allow manual overwriting of the passed value.

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


More information about the wp-trac mailing list