[wp-trac] [WordPress Trac] #14084: Custom taxonomy count includes draft & trashed posts

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 7 09:33:30 UTC 2011


#14084: Custom taxonomy count includes draft & trashed posts
-------------------------------------------------+-------------------------
 Reporter:  lumpysimon                           |       Owner:  garyc40
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  Future
Component:  Taxonomy                             |  Release
 Severity:  normal                               |     Version:  3.0
 Keywords:  has-patch needs-testing 3.2-early    |  Resolution:
  dev-feedback                                   |
-------------------------------------------------+-------------------------

Comment (by garyc40):

 Replying to [comment:11 nacin]:
 > Let's make get_object_taxonomies() either take an array of args, or we
 should use wp_filter_object_list for the argument so it works like
 get_taxonomies() and get_post_types(). I like the latter.

 I notice that originally in {{{get_object_taxonomies($object, $output =
 'names')}}}, {{{$object}}} can be an array of taxonomy object types. How
 should I match this with {{{wp_filter_object_list()}}} ?

 For example, will something like this work?

 {{{
 wp_filter_object_list( $wp_taxonomies, array( 'object_type' => array(
 'post_type_1', 'post_type_2' ), $output );
 }}}

 As far as I know, {{{wp_filter_object_list()}}} can't filter an array of
 acceptable values for a single key, right?

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


More information about the wp-trac mailing list