Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #43884, comment 2


Ignore:
Timestamp:
04/29/2018 10:14:51 PM (6 years ago)
Author:
Tkama
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #43884, comment 2

    initial v1  
    11Yes, I examine core code more carefully, we don't need to check `is_blog_admin(), is_network_admin(), is_user_admin()` in this case.
    22
    3 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 )`...
     3But, 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() )`...