diff --git src/wp-admin/includes/class-wp-comments-list-table.php src/wp-admin/includes/class-wp-comments-list-table.php
index a5f9693..74ebac7 100644
|
|
|
class WP_Comments_List_Table extends WP_List_Table { |
| 716 | 716 | * @param WP_Comment $comment The comment object. |
| 717 | 717 | */ |
| 718 | 718 | public function column_date( $comment ) { |
| | 719 | if ( $post = get_post() ) { |
| | 720 | $post_type_object = get_post_type_object( $post->post_type ); |
| | 721 | } |
| | 722 | |
| 719 | 723 | /* translators: 1: comment date, 2: comment time */ |
| 720 | 724 | $submitted = sprintf( __( '%1$s at %2$s' ), |
| 721 | 725 | /* translators: comment date format. See http://php.net/date */ |
| … |
… |
class WP_Comments_List_Table extends WP_List_Table { |
| 724 | 728 | ); |
| 725 | 729 | |
| 726 | 730 | echo '<div class="submitted-on">'; |
| 727 | | if ( 'approved' === wp_get_comment_status( $comment ) && ! empty ( $comment->comment_post_ID ) ) { |
| | 731 | if ( ! empty( $post_type_object ) && 'approved' === wp_get_comment_status( $comment ) && ! empty ( $comment->comment_post_ID ) ) { |
| 728 | 732 | printf( |
| 729 | 733 | '<a href="%s">%s</a>', |
| 730 | 734 | esc_url( get_comment_link( $comment ) ), |
| … |
… |
class WP_Comments_List_Table extends WP_List_Table { |
| 755 | 759 | $pending_comments = $this->pending_count[$post->ID] = $_pending_count_temp[$post->ID]; |
| 756 | 760 | } |
| 757 | 761 | |
| 758 | | if ( current_user_can( 'edit_post', $post->ID ) ) { |
| | 762 | $post_type_object = get_post_type_object( $post->post_type ); |
| | 763 | |
| | 764 | if ( $post_type_object && current_user_can( 'edit_post', $post->ID ) ) { |
| 759 | 765 | $post_link = "<a href='" . get_edit_post_link( $post->ID ) . "' class='comments-edit-item-link'>"; |
| 760 | 766 | $post_link .= esc_html( get_the_title( $post->ID ) ) . '</a>'; |
| 761 | 767 | } else { |
| … |
… |
class WP_Comments_List_Table extends WP_List_Table { |
| 767 | 773 | echo $thumb; |
| 768 | 774 | } |
| 769 | 775 | echo $post_link; |
| 770 | | $post_type_object = get_post_type_object( $post->post_type ); |
| | 776 | |
| | 777 | if ( ! $post_type_object ) { |
| | 778 | return; |
| | 779 | } |
| | 780 | |
| 771 | 781 | echo "<a href='" . get_permalink( $post->ID ) . "' class='comments-view-item-link'>" . $post_type_object->labels->view_item . '</a>'; |
| 772 | 782 | echo '<span class="post-com-count-wrapper post-com-count-', $post->ID, '">'; |
| 773 | 783 | $this->comments_bubble( $post->ID, $pending_comments ); |