- Timestamp:
- 09/09/2015 02:59:54 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-comments-list-table.php
r33894 r33964 443 443 global $post; 444 444 445 $the_comment_class = wp_get_comment_status( $comment ->comment_ID);445 $the_comment_class = wp_get_comment_status( $comment ); 446 446 if ( ! $the_comment_class ) { 447 447 $the_comment_class = ''; 448 448 } 449 $the_comment_class = join( ' ', get_comment_class( $the_comment_class, $comment ->comment_ID, $comment->comment_post_ID ) );449 $the_comment_class = join( ' ', get_comment_class( $the_comment_class, $comment, $comment->comment_post_ID ) ); 450 450 451 451 $post = get_post( $comment->comment_post_ID ); … … 480 480 } 481 481 482 $the_comment_status = wp_get_comment_status( $comment ->comment_ID);482 $the_comment_status = wp_get_comment_status( $comment ); 483 483 484 484 $out = ''; … … 589 589 */ 590 590 public function column_comment( $comment ) { 591 $comment_url = esc_url( get_comment_link( $comment ->comment_ID) );591 $comment_url = esc_url( get_comment_link( $comment ) ); 592 592 593 593 echo '<div class="comment-author">'; … … 599 599 printf( __( 'Submitted on <a href="%1$s">%2$s at %3$s</a>' ), $comment_url, 600 600 /* translators: comment date format. See http://php.net/date */ 601 get_comment_date( __( 'Y/m/d' ), $comment ->comment_ID),602 get_comment_date( get_option( 'time_format' ), $comment ->comment_ID)601 get_comment_date( __( 'Y/m/d' ), $comment ), 602 get_comment_date( get_option( 'time_format' ), $comment ) 603 603 ); 604 604 605 605 if ( $comment->comment_parent ) { 606 606 $parent = get_comment( $comment->comment_parent ); 607 $parent_link = esc_url( get_comment_link( $ comment->comment_parent ) );608 $name = get_comment_author( $parent ->comment_ID);607 $parent_link = esc_url( get_comment_link( $parent ) ); 608 $name = get_comment_author( $parent ); 609 609 printf( ' | '.__( 'In reply to <a href="%1$s">%2$s</a>.' ), $parent_link, $name ); 610 610 } 611 611 612 612 echo '</div>'; 613 comment_text( $comment ->comment_ID);613 comment_text( $comment ); 614 614 if ( $this->user_can ) { ?> 615 615 <div id="inline-<?php echo $comment->comment_ID; ?>" class="hidden"> … … 636 636 global $comment_status; 637 637 638 $author_url = get_comment_author_url( $comment ->comment_ID);638 $author_url = get_comment_author_url( $comment ); 639 639 640 640 $author_url_display = untrailingslashit( preg_replace( '|^http(s)?://(www\.)?|i', '', $author_url ) ); … … 643 643 } 644 644 645 echo "<strong>"; comment_author( $comment ->comment_ID); echo '</strong><br />';645 echo "<strong>"; comment_author( $comment ); echo '</strong><br />'; 646 646 if ( ! empty( $author_url_display ) ) { 647 647 printf( '<a href="%s">%s</a><br />', esc_url( $author_url ), esc_html( $author_url_display ) ); … … 658 658 } 659 659 660 $author_ip = get_comment_author_IP( $comment ->comment_ID);660 $author_ip = get_comment_author_IP( $comment ); 661 661 if ( $author_ip ) { 662 662 $author_ip_url = add_query_arg( array( 's' => $author_ip, 'mode' => 'detail' ), 'edit-comments.php' ); … … 674 674 */ 675 675 public function column_date( $comment ) { 676 return get_comment_date( __( 'Y/m/d \a\t g:i a' ), $comment ->comment_ID);676 return get_comment_date( __( 'Y/m/d \a\t g:i a' ), $comment ); 677 677 } 678 678
Note: See TracChangeset
for help on using the changeset viewer.