WordPress.org

Make WordPress Core

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


Ignore:
Timestamp:
04/29/2018 10:15:31 PM (21 months ago)
Author:
Tkama
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #43884, comment 2

    v1 v2  
    1 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.
     1Thanks! I examine the code more carefully, we don't need to check `is_blog_admin(), is_network_admin(), is_user_admin()` in this case.
    22
    33But, 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() )`...