Changeset 57850
- Timestamp:
- 03/18/2024 03:44:25 PM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-walker-comment.php
r56549 r57850 279 279 $show_pending_links = ! empty( $commenter['comment_author'] ); 280 280 281 if ( $comment && '0' == $comment->comment_approved && ! $show_pending_links ) {281 if ( $comment && '0' === $comment->comment_approved && ! $show_pending_links ) { 282 282 $comment_text = wp_kses( $comment_text, array() ); 283 283 } … … 321 321 <div class="comment-author vcard"> 322 322 <?php 323 if ( 0 != $args['avatar_size'] ) {323 if ( 0 !== $args['avatar_size'] ) { 324 324 echo get_avatar( $comment, $args['avatar_size'] ); 325 325 } … … 328 328 $comment_author = get_comment_author_link( $comment ); 329 329 330 if ( '0' == $comment->comment_approved && ! $show_pending_links ) {330 if ( '0' === $comment->comment_approved && ! $show_pending_links ) { 331 331 $comment_author = get_comment_author( $comment ); 332 332 } … … 339 339 ?> 340 340 </div> 341 <?php if ( '0' == $comment->comment_approved ) : ?>341 <?php if ( '0' === $comment->comment_approved ) : ?> 342 342 <em class="comment-awaiting-moderation"><?php echo $moderation_note; ?></em> 343 343 <br /> … … 424 424 <div class="comment-author vcard"> 425 425 <?php 426 if ( 0 != $args['avatar_size'] ) {426 if ( 0 !== $args['avatar_size'] ) { 427 427 echo get_avatar( $comment, $args['avatar_size'] ); 428 428 } … … 431 431 $comment_author = get_comment_author_link( $comment ); 432 432 433 if ( '0' == $comment->comment_approved && ! $show_pending_links ) {433 if ( '0' === $comment->comment_approved && ! $show_pending_links ) { 434 434 $comment_author = get_comment_author( $comment ); 435 435 } … … 461 461 </div><!-- .comment-metadata --> 462 462 463 <?php if ( '0' == $comment->comment_approved ) : ?>463 <?php if ( '0' === $comment->comment_approved ) : ?> 464 464 <em class="comment-awaiting-moderation"><?php echo $moderation_note; ?></em> 465 465 <?php endif; ?> … … 471 471 472 472 <?php 473 if ( '1' == $comment->comment_approved || $show_pending_links ) {473 if ( '1' === $comment->comment_approved || $show_pending_links ) { 474 474 comment_reply_link( 475 475 array_merge(
Note: See TracChangeset
for help on using the changeset viewer.