WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #23329


Ignore:
Timestamp:
01/30/2013 09:08:53 PM (8 years ago)
Author:
SergeyBiryukov
Comment:

Also suggested in ticket:13961:29.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #23329 – Description

    initial v1  
    22
    33The example in the Codex is even wrong:
    4 
     4{{{
    55  add_action( 'pre_get_posts', 'foo_modify_query_exclude_category' );
    66
     
    99          $query->set( 'cat', '-5' );
    1010  }
    11 
     11}}}
    1212I propose deprecating the function as an encouragement for users to refer to the query object method instead.