- Timestamp:
- 09/24/2015 05:26:54 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-comments-list-table.php
r34424 r34504 400 400 } 401 401 402 $columns['date'] = _x( 'Submitted On', 'column name' ); 403 402 404 return $columns; 403 405 } … … 410 412 return array( 411 413 'author' => 'comment_author', 412 'response' => 'comment_post_ID' 414 'response' => 'comment_post_ID', 415 'date' => 'comment_date' 413 416 ); 414 417 } … … 622 625 */ 623 626 public function column_comment( $comment ) { 624 $comment_url = esc_url( get_comment_link( $comment ) );625 626 627 echo '<div class="comment-author">'; 627 628 $this->column_author( $comment ); 628 629 echo '</div>'; 629 630 echo '<div class="submitted-on">';631 /* translators: 2: comment date, 3: comment time */632 printf( __( 'Submitted on <a href="%1$s">%2$s at %3$s</a>' ), $comment_url,633 /* translators: comment date format. See http://php.net/date */634 get_comment_date( __( 'Y/m/d' ), $comment ),635 get_comment_date( get_option( 'time_format' ), $comment )636 );637 630 638 631 if ( $comment->comment_parent ) { … … 643 636 printf( 644 637 /* translators: %s: comment link */ 645 ' | ' .__( 'In reply to %s.' ),638 __( 'In reply to %s.' ), 646 639 '<a href="' . $parent_link . '">' . $name . '</a>' 647 640 ); … … 649 642 } 650 643 651 echo '</div>';652 644 comment_text( $comment ); 653 645 if ( $this->user_can ) { ?> … … 709 701 710 702 /** 711 * 712 * @return string 703 * @access public 713 704 */ 714 705 public function column_date( $comment ) { 715 return get_comment_date( __( 'Y/m/d \a\t g:i a' ), $comment ); 706 $comment_url = esc_url( get_comment_link( $comment ) ); 707 echo '<div class="submitted-on">'; 708 /* translators: 2: comment date, 3: comment time */ 709 printf( __( '<a href="%1$s">%2$s at %3$s</a>' ), $comment_url, 710 /* translators: comment date format. See http://php.net/date */ 711 get_comment_date( __( 'Y/m/d' ), $comment ), 712 get_comment_date( get_option( 'time_format' ), $comment ) 713 ); 714 echo '</div>'; 716 715 } 717 716
Note: See TracChangeset
for help on using the changeset viewer.