WordPress.org

Make WordPress Core

Ticket #36424: class-wp-list-table.php.patch

File class-wp-list-table.php.patch, 1.1 KB (added by Presskopp, 4 years ago)
  • wp-admin/includes/class-wp-list-table.php

     
    686686                                $approved_comments ? __( 'No pending comments' ) : __( 'No comments' )
    687687                        );
    688688                }
     689                // If comments are closed, show a lock then
     690                if ( ! comments_open( $post_id ) ) {
     691                        printf( '<span aria-hidden="true"><span class="dashicons dashicons-lock"></span></span><span class="screen-reader-text">%s</span>',
     692                                __( 'Comments are closed' )
     693                        );
     694                }
     695                /* Comments are allowed, show open lock
     696                else {
     697                        printf( '<span aria-hidden="true"><span class="dashicons dashicons-unlock"></span></span><span class="screen-reader-text">%s</span>',
     698                                __( 'Comments are allowed' )
     699                        );
     700                } */
    689701        }
    690702
    691703        /**
     
    11531165        }
    11541166
    11551167        /**
    1156          * Get a list of CSS classes for the WP_List_Table table tag.
     1168         * Get a list of CSS classes for the list table table tag.
    11571169         *
    11581170         * @since 3.1.0
    11591171         * @access protected