Redirect if post not specified. Props lloydbudd. fixes #5754
git-svn-id: http://svn.automattic.com/wordpress/trunk@6741 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bddedf8c3e
commit
eabaabd76b
|
@ -46,6 +46,11 @@ case 'post':
|
||||||
case 'edit':
|
case 'edit':
|
||||||
$title = __('Edit');
|
$title = __('Edit');
|
||||||
$editing = true;
|
$editing = true;
|
||||||
|
|
||||||
|
if ( empty( $_GET['post'] ) ) {
|
||||||
|
wp_redirect("post.php");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
$post_ID = $p = (int) $_GET['post'];
|
$post_ID = $p = (int) $_GET['post'];
|
||||||
$post = get_post($post_ID);
|
$post = get_post($post_ID);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue