[wp-trac] [WordPress Trac] #43884: new is_front() function
WordPress Trac
noreply at wordpress.org
Sun Apr 29 21:54:51 UTC 2018
#43884: new is_front() function
-------------------------+------------------------------
Reporter: Tkama | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------+------------------------------
Comment (by SergeyBiryukov):
Replying to [ticket:43884 Tkama]:
> When we need to check if we doing something in front-end, we do it like
this:
>
> {{{
> if( ! is_admin() ){}
> }}}
>
> But this not convenient and not so clear because of `!`. And maybe not
full, because we don't check other admin functions like: is_blog_admin(),
is_network_admin(), is_user_admin().
If any of them is true, `is_admin()` should also return true.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43884#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list