[wp-trac] Re: [WordPress Trac] #5405: Refactor wp-login.php
WordPress Trac
wp-trac at lists.automattic.com
Tue Jan 22 05:04:06 GMT 2008
#5405: Refactor wp-login.php
--------------------------+-------------------------------------------------
Reporter: westi | Owner: westi
Type: task | Status: new
Priority: normal | Milestone: 2.6
Component: Optimization | Version:
Severity: normal | Resolution:
Keywords: |
--------------------------+-------------------------------------------------
Comment (by ryan):
Patch moves the POST handling code into functions, making the template-y
bits easier to read. retrieve_password(), reset_password(), and
register_new_user() are defined at the top of the file. All of them
return WP_Error objects in the event of an error. wp_signon() is defined
in user.php and is meant to be reusable. The logout code moved into a
wp_logout() pluggable function. wp_login() is deprecated in favor of the
new wp_authenticate() function which returns a WP_Error object rather than
setting an $error global.
--
Ticket URL: <http://trac.wordpress.org/ticket/5405#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list