[wp-trac] [WordPress Trac] #36424: graphically visualize if comments are closed (in wp-admin/edit.php)

WordPress Trac noreply at wordpress.org
Tue Apr 12 10:47:16 UTC 2016


#36424: graphically visualize if comments are closed (in wp-admin/edit.php)
----------------------------+---------------------------------
 Reporter:  pixelverbieger  |       Owner:
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Comments        |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:  ui, administration
----------------------------+---------------------------------

Comment (by Presskopp):

 I like the idea to show the lock to the right of the bubble, I don't like
 brackets.

 That would just be adding this at

 Line 689:

 {{{#!php
                 // If comments are closed, show a lock then
                 if ( ! comments_open( $post_id ) ) {
                         printf( '<span aria-hidden="true"><span
 class="dashicons dashicons-lock"></span></span><span class="screen-reader-
 text">%s</span>',
                                 __( 'Comments are closed' )
                         );
                 }
 }}}

 I tried to join git to provide a correct patch, but until now I'm not
 fully understanding the process :(

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


More information about the wp-trac mailing list