[wp-trac] [WordPress Trac] #29703: Taxonomy Count on Attachments - Not Updating

WordPress Trac noreply at wordpress.org
Thu Sep 18 12:56:00 UTC 2014


#29703: Taxonomy Count on Attachments - Not Updating
--------------------------+-----------------------------
 Reporter:  n7studios     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Taxonomy      |    Version:  3.9.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 I've encountered an issue when registered a custom, non-hierarchal
 taxonomy against attachments / Media Library items.

 Creating, editing, deleting tags etc are all working fine and tags are
 saved against Media Library items.

 However, the count of Media items for each tag is always zero.

 To reproduce:
 1. Clean install of WordPress 3.9.2 or 4.0
 2. Use register_taxonomy on init action (plugin attached which just does
 this to demonstrate the issue)
 3. Upload a new image to the Media Library
 4. Add some tags to it
 5. Navigate to Media > Tags; the count beside the tags you have will be
 zero

 I'm not sure if this is something to do with my installation (I don't
 think so, as I then setup clean installations to double check), or whether
 registering a taxonomy against an attachment isn't supposed to be possible
 in WordPress.

 Happy to provide more details if needed.

 Thanks,

 Tim.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29703>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list