[wp-trac] [WordPress Trac] #38669: Standardize "found in trash" messages

WordPress Trac noreply at wordpress.org
Fri Nov 4 17:16:39 UTC 2016


#38669: Standardize "found in trash" messages
--------------------------+------------------------------
 Reporter:  Presskopp     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Text Changes  |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by Presskopp):

 What do you think of an approach like this (example: class-wp-comments-
 list-table.php)?

 {{{#!php
         public function no_items() {
                 global $comment_status;

                 if ( 'moderated' === $comment_status ) {
                         _e( 'No comments awaiting moderation.' );
                 } else {
                         if ( 'trash' === $comment_status ) {
                                 _e( 'No comments found in Trash.' );
                         } else {
                         _e( 'No comments found.' ); }
                 }
         }
 }}}

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


More information about the wp-trac mailing list