From 93840b1632e69cb4e9c905a173ef9000bee59d87 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 31 Aug 2007 23:55:56 +0000 Subject: [PATCH] Add some filtering. Props jhodgdon. see #4516 git-svn-id: http://svn.automattic.com/wordpress/trunk@5998 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/template.php | 2 +- wp-admin/options-writing.php | 7 +++++-- wp-includes/category.php | 8 ++++++++ wp-includes/general-template.php | 30 ++++++++++++++++-------------- wp-login.php | 12 ++++++------ 5 files changed, 36 insertions(+), 23 deletions(-) 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;