[wp-trac] [WordPress Trac] #24351: post__not_in is ignored in WP_Query

WordPress Trac noreply at wordpress.org
Thu May 16 09:52:17 UTC 2013


#24351: post__not_in is ignored in WP_Query
--------------------------+----------------------
 Reporter:  Dukessa       |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Query         |     Version:  3.5.1
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |
--------------------------+----------------------

Comment (by Dukessa):

 Replying to [comment:9 knutsp]:
 > This ticket is closed as invalid, so setting severity and keywords is
 meaningless unless you reopen it.
 >
 > I think the codex makes it perfectly clear how to use it, and even says
 explicitly:
 >
 > {{{
 > //This will NOT work
 > $string_variable = '1,2,3';
 > $query = new WP_Query( array( 'post__not_in' => array( $string_variable
 ) ) );
 > }}}
 >
 > The codex content is editable.

 I personally just added that string of code, that's why NOW it's clear ;)

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/24351#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list