[wp-trac] [WordPress Trac] #19898: Create a is_login() function similar to is_admin()
WordPress Trac
noreply at wordpress.org
Tue Aug 27 01:22:55 UTC 2019
#19898: Create a is_login() function similar to is_admin()
---------------------------------------+-----------------------
Reporter: dcowgill | Owner: (none)
Type: enhancement | Status: reopened
Priority: normal | Milestone: 5.3
Component: Administration | Version: 3.3
Severity: normal | Resolution:
Keywords: needs-refresh 2nd-opinion | Focuses:
---------------------------------------+-----------------------
Changes (by SergeyBiryukov):
* milestone: => 5.3
Comment:
Replying to [comment:26 iandunn]:
> I would do this instead:
>
> {{{
> function is_login_screen() {
> return false !== stripos( wp_login_url(), $_SERVER['SCRIPT_NAME']
);
> }
> }}}
Makes sense to me.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/19898#comment:27>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list