Opened 5 years ago
Last modified 4 years ago
#50815 reviewing defect (bug)
Use consistent checks for displaying the Filter button in different list tables
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Future Release | Priority: | normal |
Severity: | normal | Version: | |
Component: | Administration | Keywords: | needs-patch |
Focuses: | ui, administration, multisite | Cc: |
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 (12)
#2
@
5 years ago
- Milestone changed from Awaiting Review to 5.6
- Owner set to SergeyBiryukov
- Status changed from new to reviewing
#4
@
5 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
@
5 years ago
- Summary changed from Use `$this->has_items()` for content checks in different list classes. to Use consistent checks for displaying the Filter button in different list tables
#8
@
4 years ago
- Milestone changed from 5.6 to 5.7
comment:4:ticket:50815 still left to address, moving to the next release for now.
#9
@
4 years ago
- Milestone changed from 5.7 to 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.
4 years ago
Note: See
TracTickets for help on using
tickets.
Initial patch.