[wp-trac] [WordPress Trac] #19898: Create a is_login() function similar to is_admin()

WordPress Trac noreply at wordpress.org
Thu Oct 18 06:18:55 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 2nd-opinion  |
-----------------------------------+-----------------------------

Comment (by scribu):

 Actually, we don't even need a new filter. is_login() can just compare
 wp_login_url() agains the current URL (which I really think deserves a
 get_current_url() helper, btw).

 Behold: [attachment:19898.2.diff]

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19898#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list