[wp-hackers] Automated user creation
Alan J Castonguay
alan at verselogic.net
Tue Dec 12 20:41:09 GMT 2006
Robert Deaton wrote:
> No, don't do any include/require-ing of that file. Hook around init to
> where they will be defined regardless of whether they were included
> like normal or if they were added by a plugin.
Like normal, wp-includes/registration.php is -not- included, since it's
not used very often. wp-login.php require_once()'s registration.php[1]
as it's needed, as does wp-admin/users.php[2] This doesn't happen
anywhere near init. Anyone replacing the functionality of wp-login.php
or the Users admin panel must do a
require_once( ABSPATH . WPINC . '/registration.php');
1: http://trac.wordpress.org/browser/trunk/wp-login.php#L212
2: http://trac.wordpress.org/browser/trunk/wp-admin/users.php#L3
--
Alan J Castonguay
519.567.2633
More information about the wp-hackers
mailing list