[wp-trac] [WordPress Trac] #33622: Category counter is not working for attachment post type
WordPress Trac
noreply at wordpress.org
Mon Aug 31 11:13:11 UTC 2015
#33622: Category counter is not working for attachment post type
--------------------------------+-----------------------------
Reporter: JohnOak | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: trunk
Severity: normal | Keywords:
Focuses: ui, administration |
--------------------------------+-----------------------------
When registering a custom taxonomy for "attachment" post type:
{{{
register_taxonomy( 'test', 'attachment', [
"label" => "Test",
"singular_label" => "Test",
]);
}}}
And setting taxonomy value for attachment file:
[[Image(http://engineer.lv/wp-bug.png)]]
The count for items in registered taxonomy shows 0 (if there is 1 or more
items it will still show 0 an this is the problem):
[[Image(http://engineer.lv/wp-bug-2.png)]]
When clicking on count (that shows 0) opens Media Library with items that
have this taxonomy value. And in here everything is just fine:
[[Image(http://engineer.lv/wp-bug-3.png)]]
The problem is that wrong counter that should be fixed.
Bug was tested with clean WordPress install with no plugins and on clean
Twenty Fifteen child theme.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33622>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list