[wp-trac] [WordPress Trac] #18709: Hooks in user-new.php
WordPress Trac
noreply at wordpress.org
Mon Jul 29 05:32:15 UTC 2013
#18709: Hooks in user-new.php
-----------------------------+-----------------------------
Reporter: standardtoaster | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Administration | Version: 3.2.1
Severity: normal | Resolution:
Keywords: has-patch |
-----------------------------+-----------------------------
Comment (by strangerstudios):
18709.2 attached. This patch changes the names of the hooks added in the
previous patch. The two hooks added now are:
* user_new_form_before
* user_new_form_after
First, I made both the network version and non-network version use the
same set of hooks. The previous patch added new_user_form_before/after and
add_user_form_before/after. I think this may have been a typo, but might
have been intentional. If intentional, I think that it makes sense to use
one set of hooks and let the plugin authors decide if they want to do
something different for network sites and non-network sites. This is
similar to the edit_user_profile hook which appears in the network and
non-network version of user-edit.php.
I also switched the order from new_user to user_new to match the filename
and another hook already in place there (user_new_form_tag).
I tested 18709.2 on the latest codebase (as of posting) and it works
great. I'm open to double checks and ideas around the hook naming/etc.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18709#comment:26>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list