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

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 7 15:02:42 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:15 scribu]:
 > I don't see how that could happen. It looks for an exact match.

 Try this:

 {{{
 add_action('admin_notices', 'test_admin_notices');
 function test_admin_notices() {
         global $wp_taxonomies;
         var_dump( wp_filter_object_list( array_values( $wp_taxonomies ),
 array( 'object_type' => array( 'post' ) ) ) );
 }
 }}}

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


More information about the wp-trac mailing list