Changes between Version 1 and Version 2 of Ticket #43884, comment 2
- Timestamp:
- 04/29/2018 10:15:31 PM (6 years ago)
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.1 Thanks! I examine the code more carefully, we don't need to check `is_blog_admin(), is_network_admin(), is_user_admin()` in this case. 2 2 3 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() )`...