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

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 7 09:43:56 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 nacin):

 I meant `get_object_taxonomies( $object, $output = 'names', $args )`,
 where $args then goes through wp_filter_object_list. It can then be passed
 straight through to get_taxonomies(), which would need to replace the raw
 `$wp_taxonomies` call.

 Then you can call `get_object_taxonomies( 'post', 'names', array(
 '_builtin' => false ) )`.

 get_attachment_taxonomies() will probably need similar treatment to make
 everything consistent.

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


More information about the wp-trac mailing list