[wp-trac] [WordPress Trac] #38170: get_comment_reply_link(): access to args field 'max_depth' even if not set?

WordPress Trac noreply at wordpress.org
Tue Sep 27 11:33:56 UTC 2016


#38170: get_comment_reply_link(): access to args field 'max_depth' even if not set?
--------------------------+-----------------------------
 Reporter:  d4z_c0nf      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Comments      |    Version:  4.6.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Hello,
 in https://core.trac.wordpress.org/browser/tags/4.6.1/src/wp-includes
 /comment-template.php#L1603
 {{{#!php
 <?php
 if ( 0 == $args['depth'] || $args['max_depth'] <= $args['depth'] ) {
 }}}


 `max_depth` isn't a default argument while it should be ... right?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38170>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list