[wp-trac] [WordPress Trac] #41101: Add filter to prevent the addition of a user to a blog

WordPress Trac noreply at wordpress.org
Sat Jul 1 16:48:41 UTC 2017


#41101: Add filter to prevent the addition of a user to a blog
-------------------------------------------------+-------------------------
 Reporter:  jmdodd                               |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Users                                |  Review
 Severity:  normal                               |     Version:  trunk
 Keywords:  has-patch has-unit-tests needs-      |  Resolution:
  testing                                        |     Focuses:  multisite
-------------------------------------------------+-------------------------

Comment (by flixos90):

 @desrosj
 > Not sure if we should always remove the hooks in the test function, or
 just rely on that function and avoid unneeded calls to `remove_action()`
 and `remove_filter()`.

 I know several tests do that manually, but that might be old code or have
 been overlooked. Removing hooks should be omitted as it's an unnecessary
 step in tests.

 Thanks for testing this in detail. I agree that the functionality related
 to adding a user to a site needs to be adjusted as well in order to for
 this change to be viable for core.

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


More information about the wp-trac mailing list