[wp-trac] [WordPress Trac] #20279: Functions defined in wp-login.php should be moved to a separate file to make them re-usable
WordPress Trac
wp-trac at lists.automattic.com
Thu Mar 22 03:26:29 UTC 2012
#20279: Functions defined in wp-login.php should be moved to a separate file to
make them re-usable
-------------------------+-----------------------------
Reporter: beaulebens | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords: has-patch
-------------------------+-----------------------------
Currently, there are a series of functions defined at the top of wp-
login.php:
{{{
login_header()
login_footer()
wp_shake_js()
retrieve_password()
check_password_reset_key()
reset_password()
register_new_user()
}}}
If these functions were moved to a separate file, they would be reusable
by folks who are trying to do more advanced things involving the login
flow.
As an example, if you want to create a page resembling wp-login right now,
there's no easy way to do it without just duplicating everything from this
file. Moving these functions means you can use login_header() and
login_footer() to recreate the bulk of the page, then handle the "content
block" yourself. This marginally improves the re-usability of the login
system.
Patch attached which does this.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20279>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list