[wp-trac] [WordPress Trac] #20376: wp_list_pages fails with meta_value=0 criteria

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 6 12:46:08 UTC 2012


#20376: wp_list_pages fails with meta_value=0 criteria
--------------------------+-----------------------------
 Reporter:  Big Tick      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Query         |    Version:  3.3.1
 Severity:  normal        |   Keywords:  needs-patch
--------------------------+-----------------------------
 The following code will ignore the meta_key filtering. In other words,
 wp_list_pages can't test for a meta_value of 0.

 {{{
 wp_list_pages(
   array(
     'meta_key' => 'a_custom_key',
     'meta_value' => '0'
   )
 )
 }}}

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


More information about the wp-trac mailing list