[wp-trac] [WordPress Trac] #40188: Filter button should not appear when no comments are available in list
WordPress Trac
noreply at wordpress.org
Thu Apr 13 06:48:24 UTC 2017
#40188: Filter button should not appear when no comments are available in list
--------------------------------------+---------------------------------
Reporter: swissspidy | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version:
Severity: normal | Resolution:
Keywords: good-first-bug has-patch | Focuses: ui, administration
--------------------------------------+---------------------------------
Comment (by swissspidy):
@Jim_Panse It looks like your patch is reversed (what is red should be
green).
A helper method shouldn't be needed though. Why not simply use
`get_comments( array( 'number' => 1 ) )` in the condition?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40188#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list