Changeset 8878
- Timestamp:
- 09/12/2008 11:45:15 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment-template.php
r8877 r8878 846 846 847 847 $defaults = array('add_below' => 'comment', 'respond_id' => 'respond', 'reply_text' => __('Reply'), 848 'login_text' => __('Log in to Reply') );848 'login_text' => __('Log in to Reply'), 'depth' => 0); 849 849 850 850 $args = wp_parse_args($args, $defaults); 851 852 if ( 0 == $args['depth'] || $args['max_depth'] < $args['depth'] ) 851 853 852 854 extract($args, EXTR_SKIP); … … 940 942 941 943 <div class='reply'> 942 <?php if ( 0 == $args['depth'] || $depth < $args['depth'] ) echo comment_reply_link(array('add_below' => 'div-comment')) ?>944 <?php echo comment_reply_link(array('add_below' => 'div-comment', 'depth' => $args['depth'], 'max_depth' => $depth)) ?> 943 945 <?php if ( 'list' == $args['style'] ) : ?> 944 946 </div>
Note: See TracChangeset
for help on using the changeset viewer.