[wp-trac] [WordPress Trac] #25203: Use comment_reply_link arguments to wrap reply link

WordPress Trac noreply at wordpress.org
Sun Sep 1 10:06:09 UTC 2013


#25203: Use comment_reply_link arguments to wrap reply link
---------------------------+-----------------------------
 Reporter:  thomasguillot  |      Owner:
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Comments       |    Version:  trunk
 Severity:  major          |   Keywords:  needs-patch
---------------------------+-----------------------------
 Avoid empty div if no reply link

 wp-includes/comment-template.php

 {{{
 <div class="reply">
         <?php comment_reply_link( array_merge( $args, array( 'add_below'
 => $add_below, 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) );
 ?>
 </div>
 }}}

 to

 {{{
 <?php
         comment_reply_link( array_merge( $args, array(
                 'add_below' => $add_below,
                 'depth'     => $depth,
                 'max_depth' => $args['max_depth'],
                 'before'    => '<div class="reply">',
                 'after'     => '</div>',
         ) ) );
 ?>
 }}}

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25203>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list