From eabaabd76b5ee30bbdafc4278359a73154282a23 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 6 Feb 2008 21:40:52 +0000 Subject: [PATCH] Redirect if post not specified. Props lloydbudd. fixes #5754 git-svn-id: http://svn.automattic.com/wordpress/trunk@6741 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/post.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wp-admin/post.php b/wp-admin/post.php index 233934e0f..1010e9fd8 100644 --- a/wp-admin/post.php +++ b/wp-admin/post.php @@ -46,6 +46,11 @@ case 'post': case 'edit': $title = __('Edit'); $editing = true; + + if ( empty( $_GET['post'] ) ) { + wp_redirect("post.php"); + exit(); + } $post_ID = $p = (int) $_GET['post']; $post = get_post($post_ID);