Opened 6 years ago
Last modified 16 months ago
#50815 reviewing defect (bug)
Use consistent checks for displaying the Filter button in different list tables
| Reported by: | whyisjake | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | Future Release |
| Component: | Administration | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | ui, administration, multisite |
Description
As an extension of #40188, let's bring some consistency to class-wp-posts-list-table.php and class-wp-ms-sites-list-table.php to check $this->has_items(), instead of ! empty( $output ).
Attachments (1)
Change History (13)
#4
@
6 years ago
Just to clarify on comment:23:ticket:40188, I didn't mean that ! empty( $output ) should necessarily be replaced with $this->has_items(), only that a consistent check should ideally be used in all list tables, whether it's the former, the latter, or both.
#5
@
6 years ago
- Summary Use `$this->has_items()` for content checks in different list classes. → Use consistent checks for displaying the Filter button in different list tables
#8
@
6 years ago
- Milestone 5.6 → 5.7
comment:4:ticket:50815 still left to address, moving to the next release for now.
#9
@
6 years ago
- Milestone 5.7 → 5.8
Since we're in 5.7 beta 3, let's move this to the next release again.
This ticket was mentioned in Slack in #core by chaion07. View the logs.
5 years ago
#11
@
5 years ago
- Keywords needs-patch added; has-patch removed
- Milestone 5.8 → Future Release
Today is 5.8 Beta 1. Moving the last part of the ticket to Future Release as there's been no activity on it and it's been kicked down the road 2x already.
This ticket was mentioned in PR #9006 on WordPress/wordpress-develop by @sainathpoojary.
16 months ago
#12
- Keywords has-patch added; needs-patch removed
Trac ticket: #50815
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Initial patch.