diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index ce15ae2ac..ebf4094d2 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -286,7 +286,7 @@ if ( current_user_can('edit_post', $comment->comment_post_ID) ) { } echo " | comment_post_ID . "&c=" . $comment->comment_ID, 'delete-comment_' . $comment->comment_ID) . "\" onclick=\"return deleteSomething( 'comment-as-spam', $comment->comment_ID, '" . js_escape(sprintf(__("You are about to mark as spam this comment by '%s'.\n'Cancel' to stop, 'OK' to mark as spam."), $comment->comment_author)) . "', theCommentList );\">" . __('Spam') . " "; } -$post = get_post($comment->comment_post_ID); +$post = get_post($comment->comment_post_ID, OBJECT, 'display'); $post_title = wp_specialchars( $post->post_title, 'double' ); $post_title = ('' == $post_title) ? "# $comment->comment_post_ID" : $post_title; ?> diff --git a/wp-admin/options-writing.php b/wp-admin/options-writing.php index eb440bfe3..5efc39c19 100644 --- a/wp-admin/options-writing.php +++ b/wp-admin/options-writing.php @@ -33,6 +33,7 @@ include('admin-header.php'); term_id == get_option('default_category')) $selected = " selected='selected'"; else $selected = ''; echo "\n\t"; @@ -44,8 +45,9 @@ endforeach;