[wp-trac] [WordPress Trac] #6773: get_pages fixes

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 18 20:20:33 GMT 2008


#6773: get_pages fixes
----------------------+-----------------------------------------------------
 Reporter:  filosofo  |       Owner:  anonymous          
     Type:  defect    |      Status:  new                
 Priority:  normal    |   Milestone:  2.6                
Component:  General   |     Version:                     
 Severity:  normal    |    Keywords:  get_pages has-patch
----------------------+-----------------------------------------------------
 get_pages queries don't work as expected:
  * meta_key and meta_value are listed as separate potential parameters,
 but they have to be used together, or you get really odd behavior.  One
 should be able to use them separately, as in the following example, which
 should return an array of pages with the meta_key of 'whatever':
 {{{$pages = get_pages(array('meta_key' => 'whatever'));}}}
 [[br]]The above fails fatally.
  * LEFT JOIN is more efficient

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6773>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list