Edit File by line
/home/barbar84/www/wp-inclu...
File: class-walker-comment.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Comment API: Walker_Comment class
[2] Fix | Delete
*
[3] Fix | Delete
* @package WordPress
[4] Fix | Delete
* @subpackage Comments
[5] Fix | Delete
* @since 4.4.0
[6] Fix | Delete
*/
[7] Fix | Delete
[8] Fix | Delete
/**
[9] Fix | Delete
* Core walker class used to create an HTML list of comments.
[10] Fix | Delete
*
[11] Fix | Delete
* @since 2.7.0
[12] Fix | Delete
*
[13] Fix | Delete
* @see Walker
[14] Fix | Delete
*/
[15] Fix | Delete
class Walker_Comment extends Walker {
[16] Fix | Delete
[17] Fix | Delete
/**
[18] Fix | Delete
* What the class handles.
[19] Fix | Delete
*
[20] Fix | Delete
* @since 2.7.0
[21] Fix | Delete
* @var string
[22] Fix | Delete
*
[23] Fix | Delete
* @see Walker::$tree_type
[24] Fix | Delete
*/
[25] Fix | Delete
public $tree_type = 'comment';
[26] Fix | Delete
[27] Fix | Delete
/**
[28] Fix | Delete
* Database fields to use.
[29] Fix | Delete
*
[30] Fix | Delete
* @since 2.7.0
[31] Fix | Delete
* @var array
[32] Fix | Delete
*
[33] Fix | Delete
* @see Walker::$db_fields
[34] Fix | Delete
* @todo Decouple this
[35] Fix | Delete
*/
[36] Fix | Delete
public $db_fields = array(
[37] Fix | Delete
'parent' => 'comment_parent',
[38] Fix | Delete
'id' => 'comment_ID',
[39] Fix | Delete
);
[40] Fix | Delete
[41] Fix | Delete
/**
[42] Fix | Delete
* Starts the list before the elements are added.
[43] Fix | Delete
*
[44] Fix | Delete
* @since 2.7.0
[45] Fix | Delete
*
[46] Fix | Delete
* @see Walker::start_lvl()
[47] Fix | Delete
* @global int $comment_depth
[48] Fix | Delete
*
[49] Fix | Delete
* @param string $output Used to append additional content (passed by reference).
[50] Fix | Delete
* @param int $depth Optional. Depth of the current comment. Default 0.
[51] Fix | Delete
* @param array $args Optional. Uses 'style' argument for type of HTML list. Default empty array.
[52] Fix | Delete
*/
[53] Fix | Delete
public function start_lvl( &$output, $depth = 0, $args = array() ) {
[54] Fix | Delete
$GLOBALS['comment_depth'] = $depth + 1;
[55] Fix | Delete
[56] Fix | Delete
switch ( $args['style'] ) {
[57] Fix | Delete
case 'div':
[58] Fix | Delete
break;
[59] Fix | Delete
case 'ol':
[60] Fix | Delete
$output .= '<ol class="children">' . "\n";
[61] Fix | Delete
break;
[62] Fix | Delete
case 'ul':
[63] Fix | Delete
default:
[64] Fix | Delete
$output .= '<ul class="children">' . "\n";
[65] Fix | Delete
break;
[66] Fix | Delete
}
[67] Fix | Delete
}
[68] Fix | Delete
[69] Fix | Delete
/**
[70] Fix | Delete
* Ends the list of items after the elements are added.
[71] Fix | Delete
*
[72] Fix | Delete
* @since 2.7.0
[73] Fix | Delete
*
[74] Fix | Delete
* @see Walker::end_lvl()
[75] Fix | Delete
* @global int $comment_depth
[76] Fix | Delete
*
[77] Fix | Delete
* @param string $output Used to append additional content (passed by reference).
[78] Fix | Delete
* @param int $depth Optional. Depth of the current comment. Default 0.
[79] Fix | Delete
* @param array $args Optional. Will only append content if style argument value is 'ol' or 'ul'.
[80] Fix | Delete
* Default empty array.
[81] Fix | Delete
*/
[82] Fix | Delete
public function end_lvl( &$output, $depth = 0, $args = array() ) {
[83] Fix | Delete
$GLOBALS['comment_depth'] = $depth + 1;
[84] Fix | Delete
[85] Fix | Delete
switch ( $args['style'] ) {
[86] Fix | Delete
case 'div':
[87] Fix | Delete
break;
[88] Fix | Delete
case 'ol':
[89] Fix | Delete
$output .= "</ol><!-- .children -->\n";
[90] Fix | Delete
break;
[91] Fix | Delete
case 'ul':
[92] Fix | Delete
default:
[93] Fix | Delete
$output .= "</ul><!-- .children -->\n";
[94] Fix | Delete
break;
[95] Fix | Delete
}
[96] Fix | Delete
}
[97] Fix | Delete
[98] Fix | Delete
/**
[99] Fix | Delete
* Traverses elements to create list from elements.
[100] Fix | Delete
*
[101] Fix | Delete
* This function is designed to enhance Walker::display_element() to
[102] Fix | Delete
* display children of higher nesting levels than selected inline on
[103] Fix | Delete
* the highest depth level displayed. This prevents them being orphaned
[104] Fix | Delete
* at the end of the comment list.
[105] Fix | Delete
*
[106] Fix | Delete
* Example: max_depth = 2, with 5 levels of nested content.
[107] Fix | Delete
* 1
[108] Fix | Delete
* 1.1
[109] Fix | Delete
* 1.1.1
[110] Fix | Delete
* 1.1.1.1
[111] Fix | Delete
* 1.1.1.1.1
[112] Fix | Delete
* 1.1.2
[113] Fix | Delete
* 1.1.2.1
[114] Fix | Delete
* 2
[115] Fix | Delete
* 2.2
[116] Fix | Delete
*
[117] Fix | Delete
* @since 2.7.0
[118] Fix | Delete
*
[119] Fix | Delete
* @see Walker::display_element()
[120] Fix | Delete
* @see wp_list_comments()
[121] Fix | Delete
*
[122] Fix | Delete
* @param WP_Comment $element Comment data object.
[123] Fix | Delete
* @param array $children_elements List of elements to continue traversing. Passed by reference.
[124] Fix | Delete
* @param int $max_depth Max depth to traverse.
[125] Fix | Delete
* @param int $depth Depth of the current element.
[126] Fix | Delete
* @param array $args An array of arguments.
[127] Fix | Delete
* @param string $output Used to append additional content. Passed by reference.
[128] Fix | Delete
*/
[129] Fix | Delete
public function display_element( $element, &$children_elements, $max_depth, $depth, $args, &$output ) {
[130] Fix | Delete
if ( ! $element ) {
[131] Fix | Delete
return;
[132] Fix | Delete
}
[133] Fix | Delete
[134] Fix | Delete
$id_field = $this->db_fields['id'];
[135] Fix | Delete
$id = $element->$id_field;
[136] Fix | Delete
[137] Fix | Delete
parent::display_element( $element, $children_elements, $max_depth, $depth, $args, $output );
[138] Fix | Delete
[139] Fix | Delete
/*
[140] Fix | Delete
* If at the max depth, and the current element still has children, loop over those
[141] Fix | Delete
* and display them at this level. This is to prevent them being orphaned to the end
[142] Fix | Delete
* of the list.
[143] Fix | Delete
*/
[144] Fix | Delete
if ( $max_depth <= $depth + 1 && isset( $children_elements[ $id ] ) ) {
[145] Fix | Delete
foreach ( $children_elements[ $id ] as $child ) {
[146] Fix | Delete
$this->display_element( $child, $children_elements, $max_depth, $depth, $args, $output );
[147] Fix | Delete
}
[148] Fix | Delete
[149] Fix | Delete
unset( $children_elements[ $id ] );
[150] Fix | Delete
}
[151] Fix | Delete
[152] Fix | Delete
}
[153] Fix | Delete
[154] Fix | Delete
/**
[155] Fix | Delete
* Starts the element output.
[156] Fix | Delete
*
[157] Fix | Delete
* @since 2.7.0
[158] Fix | Delete
*
[159] Fix | Delete
* @see Walker::start_el()
[160] Fix | Delete
* @see wp_list_comments()
[161] Fix | Delete
* @global int $comment_depth
[162] Fix | Delete
* @global WP_Comment $comment Global comment object.
[163] Fix | Delete
*
[164] Fix | Delete
* @param string $output Used to append additional content. Passed by reference.
[165] Fix | Delete
* @param WP_Comment $comment Comment data object.
[166] Fix | Delete
* @param int $depth Optional. Depth of the current comment in reference to parents. Default 0.
[167] Fix | Delete
* @param array $args Optional. An array of arguments. Default empty array.
[168] Fix | Delete
* @param int $id Optional. ID of the current comment. Default 0 (unused).
[169] Fix | Delete
*/
[170] Fix | Delete
public function start_el( &$output, $comment, $depth = 0, $args = array(), $id = 0 ) {
[171] Fix | Delete
$depth++;
[172] Fix | Delete
$GLOBALS['comment_depth'] = $depth;
[173] Fix | Delete
$GLOBALS['comment'] = $comment;
[174] Fix | Delete
[175] Fix | Delete
if ( ! empty( $args['callback'] ) ) {
[176] Fix | Delete
ob_start();
[177] Fix | Delete
call_user_func( $args['callback'], $comment, $args, $depth );
[178] Fix | Delete
$output .= ob_get_clean();
[179] Fix | Delete
return;
[180] Fix | Delete
}
[181] Fix | Delete
[182] Fix | Delete
if ( 'comment' === $comment->comment_type ) {
[183] Fix | Delete
add_filter( 'comment_text', array( $this, 'filter_comment_text' ), 40, 2 );
[184] Fix | Delete
}
[185] Fix | Delete
[186] Fix | Delete
if ( ( 'pingback' === $comment->comment_type || 'trackback' === $comment->comment_type ) && $args['short_ping'] ) {
[187] Fix | Delete
ob_start();
[188] Fix | Delete
$this->ping( $comment, $depth, $args );
[189] Fix | Delete
$output .= ob_get_clean();
[190] Fix | Delete
} elseif ( 'html5' === $args['format'] ) {
[191] Fix | Delete
ob_start();
[192] Fix | Delete
$this->html5_comment( $comment, $depth, $args );
[193] Fix | Delete
$output .= ob_get_clean();
[194] Fix | Delete
} else {
[195] Fix | Delete
ob_start();
[196] Fix | Delete
$this->comment( $comment, $depth, $args );
[197] Fix | Delete
$output .= ob_get_clean();
[198] Fix | Delete
}
[199] Fix | Delete
[200] Fix | Delete
if ( 'comment' === $comment->comment_type ) {
[201] Fix | Delete
remove_filter( 'comment_text', array( $this, 'filter_comment_text' ), 40, 2 );
[202] Fix | Delete
}
[203] Fix | Delete
}
[204] Fix | Delete
[205] Fix | Delete
/**
[206] Fix | Delete
* Ends the element output, if needed.
[207] Fix | Delete
*
[208] Fix | Delete
* @since 2.7.0
[209] Fix | Delete
*
[210] Fix | Delete
* @see Walker::end_el()
[211] Fix | Delete
* @see wp_list_comments()
[212] Fix | Delete
*
[213] Fix | Delete
* @param string $output Used to append additional content. Passed by reference.
[214] Fix | Delete
* @param WP_Comment $comment The current comment object. Default current comment.
[215] Fix | Delete
* @param int $depth Optional. Depth of the current comment. Default 0.
[216] Fix | Delete
* @param array $args Optional. An array of arguments. Default empty array.
[217] Fix | Delete
*/
[218] Fix | Delete
public function end_el( &$output, $comment, $depth = 0, $args = array() ) {
[219] Fix | Delete
if ( ! empty( $args['end-callback'] ) ) {
[220] Fix | Delete
ob_start();
[221] Fix | Delete
call_user_func( $args['end-callback'], $comment, $args, $depth );
[222] Fix | Delete
$output .= ob_get_clean();
[223] Fix | Delete
return;
[224] Fix | Delete
}
[225] Fix | Delete
if ( 'div' === $args['style'] ) {
[226] Fix | Delete
$output .= "</div><!-- #comment-## -->\n";
[227] Fix | Delete
} else {
[228] Fix | Delete
$output .= "</li><!-- #comment-## -->\n";
[229] Fix | Delete
}
[230] Fix | Delete
}
[231] Fix | Delete
[232] Fix | Delete
/**
[233] Fix | Delete
* Outputs a pingback comment.
[234] Fix | Delete
*
[235] Fix | Delete
* @since 3.6.0
[236] Fix | Delete
*
[237] Fix | Delete
* @see wp_list_comments()
[238] Fix | Delete
*
[239] Fix | Delete
* @param WP_Comment $comment The comment object.
[240] Fix | Delete
* @param int $depth Depth of the current comment.
[241] Fix | Delete
* @param array $args An array of arguments.
[242] Fix | Delete
*/
[243] Fix | Delete
protected function ping( $comment, $depth, $args ) {
[244] Fix | Delete
$tag = ( 'div' === $args['style'] ) ? 'div' : 'li';
[245] Fix | Delete
?>
[246] Fix | Delete
<<?php echo $tag; ?> id="comment-<?php comment_ID(); ?>" <?php comment_class( '', $comment ); ?>>
[247] Fix | Delete
<div class="comment-body">
[248] Fix | Delete
<?php _e( 'Pingback:' ); ?> <?php comment_author_link( $comment ); ?> <?php edit_comment_link( __( 'Edit' ), '<span class="edit-link">', '</span>' ); ?>
[249] Fix | Delete
</div>
[250] Fix | Delete
<?php
[251] Fix | Delete
}
[252] Fix | Delete
[253] Fix | Delete
/**
[254] Fix | Delete
* Filters the comment text.
[255] Fix | Delete
*
[256] Fix | Delete
* Removes links from the pending comment's text if the commenter did not consent
[257] Fix | Delete
* to the comment cookies.
[258] Fix | Delete
*
[259] Fix | Delete
* @since 5.4.2
[260] Fix | Delete
*
[261] Fix | Delete
* @param string $comment_text Text of the current comment.
[262] Fix | Delete
* @param WP_Comment|null $comment The comment object. Null if not found.
[263] Fix | Delete
* @return string Filtered text of the current comment.
[264] Fix | Delete
*/
[265] Fix | Delete
public function filter_comment_text( $comment_text, $comment ) {
[266] Fix | Delete
$commenter = wp_get_current_commenter();
[267] Fix | Delete
$show_pending_links = ! empty( $commenter['comment_author'] );
[268] Fix | Delete
[269] Fix | Delete
if ( $comment && '0' == $comment->comment_approved && ! $show_pending_links ) {
[270] Fix | Delete
$comment_text = wp_kses( $comment_text, array() );
[271] Fix | Delete
}
[272] Fix | Delete
[273] Fix | Delete
return $comment_text;
[274] Fix | Delete
}
[275] Fix | Delete
[276] Fix | Delete
/**
[277] Fix | Delete
* Outputs a single comment.
[278] Fix | Delete
*
[279] Fix | Delete
* @since 3.6.0
[280] Fix | Delete
*
[281] Fix | Delete
* @see wp_list_comments()
[282] Fix | Delete
*
[283] Fix | Delete
* @param WP_Comment $comment Comment to display.
[284] Fix | Delete
* @param int $depth Depth of the current comment.
[285] Fix | Delete
* @param array $args An array of arguments.
[286] Fix | Delete
*/
[287] Fix | Delete
protected function comment( $comment, $depth, $args ) {
[288] Fix | Delete
if ( 'div' === $args['style'] ) {
[289] Fix | Delete
$tag = 'div';
[290] Fix | Delete
$add_below = 'comment';
[291] Fix | Delete
} else {
[292] Fix | Delete
$tag = 'li';
[293] Fix | Delete
$add_below = 'div-comment';
[294] Fix | Delete
}
[295] Fix | Delete
[296] Fix | Delete
$commenter = wp_get_current_commenter();
[297] Fix | Delete
$show_pending_links = isset( $commenter['comment_author'] ) && $commenter['comment_author'];
[298] Fix | Delete
[299] Fix | Delete
if ( $commenter['comment_author_email'] ) {
[300] Fix | Delete
$moderation_note = __( 'Your comment is awaiting moderation.' );
[301] Fix | Delete
} else {
[302] Fix | Delete
$moderation_note = __( 'Your comment is awaiting moderation. This is a preview; your comment will be visible after it has been approved.' );
[303] Fix | Delete
}
[304] Fix | Delete
?>
[305] Fix | Delete
<<?php echo $tag; ?> <?php comment_class( $this->has_children ? 'parent' : '', $comment ); ?> id="comment-<?php comment_ID(); ?>">
[306] Fix | Delete
<?php if ( 'div' !== $args['style'] ) : ?>
[307] Fix | Delete
<div id="div-comment-<?php comment_ID(); ?>" class="comment-body">
[308] Fix | Delete
<?php endif; ?>
[309] Fix | Delete
<div class="comment-author vcard">
[310] Fix | Delete
<?php
[311] Fix | Delete
if ( 0 != $args['avatar_size'] ) {
[312] Fix | Delete
echo get_avatar( $comment, $args['avatar_size'] );
[313] Fix | Delete
}
[314] Fix | Delete
?>
[315] Fix | Delete
<?php
[316] Fix | Delete
$comment_author = get_comment_author_link( $comment );
[317] Fix | Delete
[318] Fix | Delete
if ( '0' == $comment->comment_approved && ! $show_pending_links ) {
[319] Fix | Delete
$comment_author = get_comment_author( $comment );
[320] Fix | Delete
}
[321] Fix | Delete
[322] Fix | Delete
printf(
[323] Fix | Delete
/* translators: %s: Comment author link. */
[324] Fix | Delete
__( '%s <span class="says">says:</span>' ),
[325] Fix | Delete
sprintf( '<cite class="fn">%s</cite>', $comment_author )
[326] Fix | Delete
);
[327] Fix | Delete
?>
[328] Fix | Delete
</div>
[329] Fix | Delete
<?php if ( '0' == $comment->comment_approved ) : ?>
[330] Fix | Delete
<em class="comment-awaiting-moderation"><?php echo $moderation_note; ?></em>
[331] Fix | Delete
<br />
[332] Fix | Delete
<?php endif; ?>
[333] Fix | Delete
[334] Fix | Delete
<div class="comment-meta commentmetadata">
[335] Fix | Delete
<?php
[336] Fix | Delete
printf(
[337] Fix | Delete
'<a href="%s">%s</a>',
[338] Fix | Delete
esc_url( get_comment_link( $comment, $args ) ),
[339] Fix | Delete
sprintf(
[340] Fix | Delete
/* translators: 1: Comment date, 2: Comment time. */
[341] Fix | Delete
__( '%1$s at %2$s' ),
[342] Fix | Delete
get_comment_date( '', $comment ),
[343] Fix | Delete
get_comment_time()
[344] Fix | Delete
)
[345] Fix | Delete
);
[346] Fix | Delete
[347] Fix | Delete
edit_comment_link( __( '(Edit)' ), ' &nbsp;&nbsp;', '' );
[348] Fix | Delete
?>
[349] Fix | Delete
</div>
[350] Fix | Delete
[351] Fix | Delete
<?php
[352] Fix | Delete
comment_text(
[353] Fix | Delete
$comment,
[354] Fix | Delete
array_merge(
[355] Fix | Delete
$args,
[356] Fix | Delete
array(
[357] Fix | Delete
'add_below' => $add_below,
[358] Fix | Delete
'depth' => $depth,
[359] Fix | Delete
'max_depth' => $args['max_depth'],
[360] Fix | Delete
)
[361] Fix | Delete
)
[362] Fix | Delete
);
[363] Fix | Delete
?>
[364] Fix | Delete
[365] Fix | Delete
<?php
[366] Fix | Delete
comment_reply_link(
[367] Fix | Delete
array_merge(
[368] Fix | Delete
$args,
[369] Fix | Delete
array(
[370] Fix | Delete
'add_below' => $add_below,
[371] Fix | Delete
'depth' => $depth,
[372] Fix | Delete
'max_depth' => $args['max_depth'],
[373] Fix | Delete
'before' => '<div class="reply">',
[374] Fix | Delete
'after' => '</div>',
[375] Fix | Delete
)
[376] Fix | Delete
)
[377] Fix | Delete
);
[378] Fix | Delete
?>
[379] Fix | Delete
[380] Fix | Delete
<?php if ( 'div' !== $args['style'] ) : ?>
[381] Fix | Delete
</div>
[382] Fix | Delete
<?php endif; ?>
[383] Fix | Delete
<?php
[384] Fix | Delete
}
[385] Fix | Delete
[386] Fix | Delete
/**
[387] Fix | Delete
* Outputs a comment in the HTML5 format.
[388] Fix | Delete
*
[389] Fix | Delete
* @since 3.6.0
[390] Fix | Delete
*
[391] Fix | Delete
* @see wp_list_comments()
[392] Fix | Delete
*
[393] Fix | Delete
* @param WP_Comment $comment Comment to display.
[394] Fix | Delete
* @param int $depth Depth of the current comment.
[395] Fix | Delete
* @param array $args An array of arguments.
[396] Fix | Delete
*/
[397] Fix | Delete
protected function html5_comment( $comment, $depth, $args ) {
[398] Fix | Delete
$tag = ( 'div' === $args['style'] ) ? 'div' : 'li';
[399] Fix | Delete
[400] Fix | Delete
$commenter = wp_get_current_commenter();
[401] Fix | Delete
$show_pending_links = ! empty( $commenter['comment_author'] );
[402] Fix | Delete
[403] Fix | Delete
if ( $commenter['comment_author_email'] ) {
[404] Fix | Delete
$moderation_note = __( 'Your comment is awaiting moderation.' );
[405] Fix | Delete
} else {
[406] Fix | Delete
$moderation_note = __( 'Your comment is awaiting moderation. This is a preview; your comment will be visible after it has been approved.' );
[407] Fix | Delete
}
[408] Fix | Delete
?>
[409] Fix | Delete
<<?php echo $tag; ?> id="comment-<?php comment_ID(); ?>" <?php comment_class( $this->has_children ? 'parent' : '', $comment ); ?>>
[410] Fix | Delete
<article id="div-comment-<?php comment_ID(); ?>" class="comment-body">
[411] Fix | Delete
<footer class="comment-meta">
[412] Fix | Delete
<div class="comment-author vcard">
[413] Fix | Delete
<?php
[414] Fix | Delete
if ( 0 != $args['avatar_size'] ) {
[415] Fix | Delete
echo get_avatar( $comment, $args['avatar_size'] );
[416] Fix | Delete
}
[417] Fix | Delete
?>
[418] Fix | Delete
<?php
[419] Fix | Delete
$comment_author = get_comment_author_link( $comment );
[420] Fix | Delete
[421] Fix | Delete
if ( '0' == $comment->comment_approved && ! $show_pending_links ) {
[422] Fix | Delete
$comment_author = get_comment_author( $comment );
[423] Fix | Delete
}
[424] Fix | Delete
[425] Fix | Delete
printf(
[426] Fix | Delete
/* translators: %s: Comment author link. */
[427] Fix | Delete
__( '%s <span class="says">says:</span>' ),
[428] Fix | Delete
sprintf( '<b class="fn">%s</b>', $comment_author )
[429] Fix | Delete
);
[430] Fix | Delete
?>
[431] Fix | Delete
</div><!-- .comment-author -->
[432] Fix | Delete
[433] Fix | Delete
<div class="comment-metadata">
[434] Fix | Delete
<?php
[435] Fix | Delete
printf(
[436] Fix | Delete
'<a href="%s"><time datetime="%s">%s</time></a>',
[437] Fix | Delete
esc_url( get_comment_link( $comment, $args ) ),
[438] Fix | Delete
get_comment_time( 'c' ),
[439] Fix | Delete
sprintf(
[440] Fix | Delete
/* translators: 1: Comment date, 2: Comment time. */
[441] Fix | Delete
__( '%1$s at %2$s' ),
[442] Fix | Delete
get_comment_date( '', $comment ),
[443] Fix | Delete
get_comment_time()
[444] Fix | Delete
)
[445] Fix | Delete
);
[446] Fix | Delete
[447] Fix | Delete
edit_comment_link( __( 'Edit' ), ' <span class="edit-link">', '</span>' );
[448] Fix | Delete
?>
[449] Fix | Delete
</div><!-- .comment-metadata -->
[450] Fix | Delete
[451] Fix | Delete
<?php if ( '0' == $comment->comment_approved ) : ?>
[452] Fix | Delete
<em class="comment-awaiting-moderation"><?php echo $moderation_note; ?></em>
[453] Fix | Delete
<?php endif; ?>
[454] Fix | Delete
</footer><!-- .comment-meta -->
[455] Fix | Delete
[456] Fix | Delete
<div class="comment-content">
[457] Fix | Delete
<?php comment_text(); ?>
[458] Fix | Delete
</div><!-- .comment-content -->
[459] Fix | Delete
[460] Fix | Delete
<?php
[461] Fix | Delete
if ( '1' == $comment->comment_approved || $show_pending_links ) {
[462] Fix | Delete
comment_reply_link(
[463] Fix | Delete
array_merge(
[464] Fix | Delete
$args,
[465] Fix | Delete
array(
[466] Fix | Delete
'add_below' => 'div-comment',
[467] Fix | Delete
'depth' => $depth,
[468] Fix | Delete
'max_depth' => $args['max_depth'],
[469] Fix | Delete
'before' => '<div class="reply">',
[470] Fix | Delete
'after' => '</div>',
[471] Fix | Delete
)
[472] Fix | Delete
)
[473] Fix | Delete
);
[474] Fix | Delete
}
[475] Fix | Delete
?>
[476] Fix | Delete
</article><!-- .comment-body -->
[477] Fix | Delete
<?php
[478] Fix | Delete
}
[479] Fix | Delete
}
[480] Fix | Delete
[481] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function