[wp-trac] [WordPress Trac] #37407: Filter button should not appear when no posts are available in list
WordPress Trac
noreply at wordpress.org
Fri Oct 14 11:58:13 UTC 2016
#37407: Filter button should not appear when no posts are available in list
-------------------------------------------------+-------------------------
Reporter: juhise | Owner: swissspidy
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.7
Component: Administration | Version: 4.5.3
Severity: normal | Resolution:
Keywords: has-ux-feedback has-screenshots | Focuses: ui
needs-patch needs-unit-tests |
-------------------------------------------------+-------------------------
Changes (by swissspidy):
* keywords: has-ux-feedback has-patch has-screenshots commit has-unit-
tests => has-ux-feedback has-screenshots needs-patch needs-unit-tests
Comment:
@karmatosed Unfortunately there's one big problem with the current patch:
when I filter posts by a category with zero posts attached to it, the
tablenav gets hidden.
To fix the original issue, the filter button without a dropdown, the whole
`if ( $this->has_items() )` check needs to be added to
`WP_Posts_List_Table::extra_tablenav()` instead.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37407#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list