[wp-trac] [WordPress Trac] #43884: new is_front() function
WordPress Trac
noreply at wordpress.org
Sun Apr 29 22:14:13 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 Tkama):
Yes, I examine core code more carefully, we don't need to check
`is_blog_admin(), is_network_admin(), is_user_admin()` in this case.
But, my main idea was to add a new function `is_front()` in core. It's
more clear (understandable) to write `if( is_front() )` than `if( !
is_admin )`...
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43884#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list