[wp-trac] [WordPress Trac] #37267: Don't output a cancel comment reply link if comments aren't threaded

WordPress Trac noreply at wordpress.org
Wed Jul 20 22:39:02 UTC 2016


#37267: Don't output a cancel comment reply link if comments aren't threaded
--------------------------+-----------------------------
 Reporter:  henry.wright  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Comments      |     Version:  2.9
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------------

Comment (by henry.wright):

 Thanks for the patch. Personally, I'd just bail from the function early if
 comments aren't threaded.

 {{{
 if ( ! get_option( 'thread_comments' ) ) {
     return '';
 }
 }}}

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


More information about the wp-trac mailing list