[wp-trac] [WordPress Trac] #19898: Create a is_login() function similar to is_admin()
WordPress Trac
noreply at wordpress.org
Thu Oct 18 17:42:45 UTC 2012
#19898: Create a is_login() function similar to is_admin()
----------------------------+-----------------------------
Reporter: dcowgill | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Administration | Version: 3.3.1
Severity: normal | Resolution:
Keywords: has-patch |
----------------------------+-----------------------------
Changes (by scribu):
* keywords: has-patch needs-unit-tests => has-patch
Comment:
To be exact, remove_query_arg() returns the current URL, sans the domain.
Either way, remove_query_arg() isn't reliable for is_register_page():
`?action=register`.
It turns out, we can just use `did_action( 'login_form_login' )` and
`did_action( 'login_form_register' )`.
The only hitch is wp-signup.php.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19898#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list