Repoint and redirect edit.php?p=X to edit-comments.php?p=X

git-svn-id: https://develop.svn.wordpress.org/trunk@9807 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith
2008-11-20 04:51:47 +00:00
parent f6e1881137
commit 99c24ed34b
6 changed files with 21 additions and 102 deletions

View File

@@ -9,7 +9,6 @@
/** WordPress Administration Bootstrap */
require_once('admin.php');
$title = __('Edit Comments');
wp_enqueue_script('admin-comments');
enqueue_comment_hotkeys_js();
@@ -67,6 +66,13 @@ if ( ( isset( $_REQUEST['delete_all_spam'] ) || isset( $_REQUEST['delete_all_spa
exit;
}
$post_id = isset($_GET['p']) ? (int) $_GET['p'] : 0;
if ( $post_id )
$title = sprintf(__('Edit Comments on “%s”'), wp_html_excerpt(_draft_or_post_title($post_id), 50));
else
$title = __('Edit Comments');
require_once('admin-header.php');
$mode = ( ! isset($_GET['mode']) || empty($_GET['mode']) ) ? 'detail' : attribute_escape($_GET['mode']);
@@ -75,8 +81,6 @@ $comment_status = !empty($_GET['comment_status']) ? attribute_escape($_GET['comm
$comment_type = !empty($_GET['comment_type']) ? attribute_escape($_GET['comment_type']) : '';
$post_id = isset($_GET['p']) ? (int) $_GET['p'] : 0;
$search_dirty = ( isset($_GET['s']) ) ? $_GET['s'] : '';
$search = attribute_escape( $search_dirty ); ?>