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

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 7 14:59:25 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 scribu):

 > This will return all sorts of taxonomies, even those that have
 object_type == array( 'nav_menu_item' ) .

 I don't see how that could happen. It looks for an exact match.

 > Should we enhance wp_filter_object_list() to also filter inside
 properties of the list item?

 I don't think that's a good idea. It could cause other problems.

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


More information about the wp-trac mailing list