Ticket #36208: 34918.diff
File 34918.diff, 794 bytes (added by , 8 years ago) |
---|
-
wp-admin/includes/class-wp-comments-list-table.php
492 492 if ( $comment->comment_post_ID > 0 ) { 493 493 $post = get_post( $comment->comment_post_ID ); 494 494 } 495 //Check if post type exists or not 496 $post_type_object = get_post_type_object( $post->post_type ); 497 498 //Return, If the post type doesn't exists anymore 499 if( !is_object( $post_type_object ) || null == $post_type_object ) { 500 return; 501 } 502 495 503 $this->user_can = current_user_can( 'edit_comment', $comment->comment_ID ); 496 504 497 505 echo "<tr id='comment-$comment->comment_ID' class='$the_comment_class'>";