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

WordPress Trac noreply at wordpress.org
Sat Sep 3 12:53:41 UTC 2016


#19898: Create a is_login() function similar to is_admin()
----------------------------+----------------------
 Reporter:  dcowgill        |       Owner:
     Type:  enhancement     |      Status:  closed
 Priority:  normal          |   Milestone:
Component:  Administration  |     Version:  3.3
 Severity:  normal          |  Resolution:  wontfix
 Keywords:  needs-refresh   |     Focuses:
----------------------------+----------------------

Comment (by SergeyBiryukov):

 Replying to [comment:24 tazotodua]:
 > My topic (#37620) was closed  marked as "DUPLICATE" of this topic.

 That ticket is still open. That said, it's unlikely a new constant will be
 introduced here. Constants are not a great way to check for context, as
 they are not filterable and hard to use in unit tests, see the discussion
 in #25669.

 #37483 was closed, because the `IS_LOGIN_PAGE` constant proposed there
 does seem similar to the `is_login()` function proposed here. Why is it
 "completely different"?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/19898#comment:25>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list