WordPress.org

Make WordPress Core

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


Ignore:
Timestamp:
01/20/11 17:52:19 (5 years ago)
Author:
scribu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16320, comment 1

    v1 v2  
    22 
    33What I'm saying is that the correct behaviour is the current one, not the one in 3.0.4. 
     4 
     5If you don't want that code to affect the admin area, just add an is_admin() check: 
     6 
     7{{{ 
     8if ( !is_admin() ) 
     9  add_filter( 'pre_get_posts','my_posts_query' ); 
     10}}}