[wp-trac] [WordPress Trac] #50815: Use `$this->has_items()` for content checks in different list classes.
WordPress Trac
noreply at wordpress.org
Tue Aug 4 16:38:10 UTC 2020
#50815: Use `$this->has_items()` for content checks in different list classes.
----------------------------+--------------------------------------------
Reporter: whyisjake | Owner: SergeyBiryukov
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 5.6
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: ui, administration, multisite
----------------------------+--------------------------------------------
Comment (by SergeyBiryukov):
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50815#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list