[wp-trac] [WordPress Trac] #38341: Hide 'Empty Trash' button when trash is already empty

WordPress Trac noreply at wordpress.org
Fri Mar 17 14:32:52 UTC 2017


#38341: Hide 'Empty Trash' button when trash is already empty
-------------------------------------------------+-------------------------
 Reporter:  swissspidy                           |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  4.8
Component:  Posts, Post Types                    |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  good-first-bug has-patch has-        |     Focuses:  ui,
  screenshots needs-unit-tests                   |  administration
-------------------------------------------------+-------------------------

Comment (by mathieuhays):

 I've just sent a new diff which hides the Empty Trash button for the use
 case mentioned by @printsachen1.

 When testing I also noticed that when the Pages' trash is empty, there
 quite a lot of spacing due to the fact that there no button or filter
 anymore. Is it something that should fixed or is it expected to remain
 like that? Can be seen on the screenshot posted by @Presskopp.

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


More information about the wp-trac mailing list