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

WordPress Trac noreply at wordpress.org
Wed Aug 30 19:53:01 UTC 2017


#41101: Add filter to prevent the addition of a user to a blog
---------------------------------------------+------------------------
 Reporter:  jmdodd                           |       Owner:  flixos90
     Type:  enhancement                      |      Status:  closed
 Priority:  normal                           |   Milestone:  4.9
Component:  Users                            |     Version:  trunk
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:  multisite
---------------------------------------------+------------------------
Changes (by flixos90):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"41324"]:
 {{{
 #!CommitTicketReference repository="" revision="41324"
 Multisite: Remove an unnecessary if clause wrapping the
 `added_existing_user` filter.

 This was accidentally introduced in [41125]. Since the
 `added_existing_user` filter has historically accepted either `true` or a
 `WP_Error` object, the clause is not necessary here. The doc block has
 been adjusted to account for the new possible `WP_Error` condition.

 Fixes #41101.
 }}}

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


More information about the wp-trac mailing list