[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:55:23 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 Jim_Panse):

 Ups, new Patch attached.

 I think it makes for a much cleaner code, if i add the helper function
 instead of calling get_comments directly in the if statement.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40188#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list