WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #18993, comment 4


Ignore:
Timestamp:
10/19/11 01:49:47 (3 years ago)
Author:
scribu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18993, comment 4

    initial v1  
    11This is consistent with all the rest of the conditional tags, which aren't expected to be used in the admin area. 
    22 
    3 The correct approach here is either what dd32 mentioned, or using is_admin() before even calling add_action or add_filter(). 
     3The correct approach here is either what dd32 mentioned, or checking is_admin() before even calling add_action or add_filter().