[wp-trac] [WordPress Trac] #12891: Advanced multi-taxonomy WP_Query()s

WordPress Trac wp-trac at lists.automattic.com
Fri Nov 19 21:26:42 UTC 2010


#12891: Advanced multi-taxonomy WP_Query()s
----------------------------+-----------------------------------------------
 Reporter:  markjaquith     |       Owner:  markjaquith    
     Type:  task (blessed)  |      Status:  assigned       
 Priority:  normal          |   Milestone:  3.1            
Component:  Query           |     Version:  3.0.1          
 Severity:  normal          |    Keywords:  ongoing-project
----------------------------+-----------------------------------------------

Comment(by ryan):

 Replying to [comment:143 Otto42]:
 > Replying to [comment:142 ryan]:
 > > {{{
 > > WP_Query( array( 'category_name' => 'A Cat', 'showposts' => '1' ) );
 > > }}}
 >
 > The category_name is supposed to be a slug, isn't it? Slugs can't have
 spaces in them, so it's probably splitting on the space somewhere.

 Before it would sanitize_title() so could get away with putting in a name.
 Not the best thing to due but this is a back compat break.

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


More information about the wp-trac mailing list