[wp-trac] [WordPress Trac] #36860: Introduce filter for users_have_content within delete action of users.php

WordPress Trac noreply at wordpress.org
Sat Sep 22 09:09:40 UTC 2018


#36860: Introduce filter for users_have_content within delete action of users.php
-------------------------------------------------+-------------------------
 Reporter:  garrett-eclipse                      |       Owner:  garrett-
                                                 |  eclipse
     Type:  enhancement                          |      Status:  accepted
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Users                                |     Version:  4.6
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch 2nd-opinion needs-testing  |     Focuses:
  needs-unit-tests                               |  administration
-------------------------------------------------+-------------------------
Changes (by garrett-eclipse):

 * keywords:   => has-patch 2nd-opinion needs-testing needs-unit-tests
 * owner:  (none) => garrett-eclipse
 * status:  new => accepted


Comment:

 Thanks @lukecavanagh

 I've put together an initial patch for this but will require review and
 unit tests.

 I placed the filter prior to the WordPress checks to avoid plugins
 suppressing them and possibly losing users content. If needed another
 filter can be added after to support suppression but I fear that may have
 negative consequences.

 If you could review and help me with next steps I'd appreciate the help.

 Cheers

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


More information about the wp-trac mailing list