[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 14:43:34 UTC 2017
#41101: Add filter to prevent the addition of a user to a blog
---------------------------------------------+------------------------
Reporter: jmdodd | Owner: flixos90
Type: enhancement | Status: reopened
Priority: normal | Milestone: 4.9
Component: Users | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests commit | Focuses: multisite
---------------------------------------------+------------------------
Changes (by flixos90):
* status: closed => reopened
* resolution: fixed =>
Comment:
Per @johnjamesjacoby (https://twitter.com/JJJ/status/902722123898253314),
there is an action hook wrapped in a `! is_wp_error()` check, although it
also accepts a `WP_Error`.
How do we solve this? Does it make more sense removing the clause, or only
running the hook when there isn't a `WP_Error`. The first is more
backward-compatible, the latter makes more sense for what the hook name
indicates IMO (if there's an error, the user was _not_ added to the site).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41101#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list