summaryrefslogtreecommitdiffstats
path: root/wp-admin/post.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-admin/post.php')
-rw-r--r--wp-admin/post.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/wp-admin/post.php b/wp-admin/post.php
index dd756fb..8f0cc53 100644
--- a/wp-admin/post.php
+++ b/wp-admin/post.php
@@ -47,6 +47,12 @@ case 'edit':
$editing = true;
$post_ID = $p = (int) $_GET['post'];
$post = get_post($post_ID);
+
+ if ( 'page' == $post->post_type ) {
+ wp_redirect("page.php?action=edit&post=$post_ID");
+ exit();
+ }
+
if($post->post_status == 'draft') {
wp_enqueue_script('prototype');
wp_enqueue_script('autosave');