Changeset 43571 for trunk/src/wp-includes/class-walker-comment.php
- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-walker-comment.php
r42343 r43571 237 237 protected function ping( $comment, $depth, $args ) { 238 238 $tag = ( 'div' == $args['style'] ) ? 'div' : 'li'; 239 ?>239 ?> 240 240 <<?php echo $tag; ?> id="comment-<?php comment_ID(); ?>" <?php comment_class( '', $comment ); ?>> 241 241 <div class="comment-body"> 242 242 <?php _e( 'Pingback:' ); ?> <?php comment_author_link( $comment ); ?> <?php edit_comment_link( __( 'Edit' ), '<span class="edit-link">', '</span>' ); ?> 243 243 </div> 244 <?php244 <?php 245 245 } 246 246 … … 264 264 $add_below = 'div-comment'; 265 265 } 266 ?>266 ?> 267 267 <<?php echo $tag; ?> <?php comment_class( $this->has_children ? 'parent' : '', $comment ); ?> id="comment-<?php comment_ID(); ?>"> 268 268 <?php if ( 'div' != $args['style'] ) : ?> … … 273 273 if ( 0 != $args['avatar_size'] ) { 274 274 echo get_avatar( $comment, $args['avatar_size'] );} 275 ?>275 ?> 276 276 <?php 277 277 /* translators: %s: comment author link */ … … 291 291 /* translators: 1: comment date, 2: comment time */ 292 292 printf( __( '%1$s at %2$s' ), get_comment_date( '', $comment ), get_comment_time() ); 293 293 ?> 294 294 </a> 295 295 <?php 296 296 edit_comment_link( __( '(Edit)' ), ' ', '' ); 297 ?>297 ?> 298 298 </div> 299 299 300 300 <?php 301 301 comment_text( 302 $comment, array_merge( 303 $args, array( 302 $comment, 303 array_merge( 304 $args, 305 array( 304 306 'add_below' => $add_below, 305 307 'depth' => $depth, … … 308 310 ) 309 311 ); 310 ?>312 ?> 311 313 312 314 <?php 313 315 comment_reply_link( 314 316 array_merge( 315 $args, array( 317 $args, 318 array( 316 319 'add_below' => $add_below, 317 320 'depth' => $depth, … … 327 330 </div> 328 331 <?php endif; ?> 329 <?php332 <?php 330 333 } 331 334 … … 343 346 protected function html5_comment( $comment, $depth, $args ) { 344 347 $tag = ( 'div' === $args['style'] ) ? 'div' : 'li'; 345 ?>348 ?> 346 349 <<?php echo $tag; ?> id="comment-<?php comment_ID(); ?>" <?php comment_class( $this->has_children ? 'parent' : '', $comment ); ?>> 347 350 <article id="div-comment-<?php comment_ID(); ?>" class="comment-body"> … … 351 354 if ( 0 != $args['avatar_size'] ) { 352 355 echo get_avatar( $comment, $args['avatar_size'] );} 353 ?>356 ?> 354 357 <?php 355 358 /* translators: %s: comment author link */ … … 385 388 comment_reply_link( 386 389 array_merge( 387 $args, array( 390 $args, 391 array( 388 392 'add_below' => 'div-comment', 389 393 'depth' => $depth, … … 396 400 ?> 397 401 </article><!-- .comment-body --> 398 <?php402 <?php 399 403 } 400 404 }
Note: See TracChangeset
for help on using the changeset viewer.