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

WordPress Trac noreply at wordpress.org
Sat Apr 9 11:32:21 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):

 This is a little more complicated than I thought. My code in #4 is rubbish
 :)

 I think we need to use st. like

 {{{#!php
 if ( ! comments_open( $post_id ) && ( empty(wp_count_comments( $post_id
 )->total_comments))) {
 }}}

 What about comments in trash? Do they count?

 We could divide this into many cases, but it could also lead to an
 overkill.

 I'll wait now for some reaction of someone who understands more than I.

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


More information about the wp-trac mailing list