id summary reporter owner description type status priority milestone component version severity resolution keywords cc focuses 48454 Term count incorrect for custom taxonomy on attachments powerbuoy "When creating a custom taxonomy for the 'attachment' post-type its term counts aren't properly updated. To reproduce: 1) Download and install WordPress 5.2.4 with the twentynineteen theme [[Image()]] 2) Add a custom taxonomy: {{{#!php [ 'name' => 'Attachment categories', 'singular_name' => 'Attachment category' ], 'rewrite' => [ 'with_front' => false, 'slug' => 'attachment-categories', 'hierarchical' => true ], 'hierarchical' => true, 'sort' => true, 'show_in_rest' => true, 'show_admin_column' => true ]); }); }}} [[Image()]] 3) Create some taxonomies and assign them to media: [[Image()]] 4) Notice how term count still says zero: [[Image()]]" defect (bug) closed normal Taxonomy 5.2.4 normal duplicate