[wp-trac] [WordPress Trac] #18709: Hooks in user-new.php
WordPress Trac
noreply at wordpress.org
Thu Sep 26 16:36:01 UTC 2013
#18709: Hooks in user-new.php
------------------------------+---------------------
Reporter: standardtoaster | Owner: helen
Type: enhancement | Status: closed
Priority: normal | Milestone: 3.7
Component: Administration | Version: 3.2.1
Severity: normal | Resolution: fixed
Keywords: commit has-patch |
------------------------------+---------------------
Comment (by nacin):
I'm reverting this from the network admin. It was modeled after the
profile editing hooks, but the profile editor in the network admin is a
direct inclusion of wp-admin/user-edit.php.
In this case, wp-admin/network/user-new.php is *not* the same as wp-admin
/user-new.php. The function edit_user() is not used. We could rename the
hook to network_user_new_form, but there is no obvious hook to manipulate
the data that is coming in. wpmu_create_user() is used directly in this
context.
wp-admin/user-new.php and wp-admin/network/user-new.php need a bit of an
overhaul to clean up the supremely hacky multisite handling in both
contexts. The network form is also a skeleton — user and email only. The
context is significantly different, and while it can be handled with an
is_network_admin() check, it's more likely that someone will attach a
callback to user_new_form and end up creating a non-working field in the
network admin.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18709#comment:41>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list