[wp-trac] [WordPress Trac] #19898: Create a is_login() function similar to is_admin()
WordPress Trac
wp-trac at lists.automattic.com
Sun Sep 16 20:55:41 UTC 2012
#19898: Create a is_login() function similar to is_admin()
-----------------------------------+--------------------
Reporter: dcowgill | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.5
Component: Administration | Version: 3.3.1
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion |
-----------------------------------+--------------------
Changes (by nacin):
* keywords: has-patch => has-patch 2nd-opinion
Comment:
I feel like the name is_login() could cause confusion in that it could be
referring to the current user (i.e. what is_user_logged_in() is for). This
is already rather confusing with is_admin(), given is_super_admin() and a
number of other functions (is_blog_admin, is_user_admin, is_site_admin).
wp-register.php no longer exists (and for older installs, it simply
redirects to wp-login.php). That means that is_login() simply returns
`$GLOBALS['pagenow'] == 'wp-login.php`, which is not really much of a
shortcut. Doesn't seem all that needed, in that case.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19898#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list