diff --git a/wp-admin/edit-post-drafts.php b/wp-admin/edit-post-drafts.php new file mode 100644 index 0000000000..a52126ee74 --- /dev/null +++ b/wp-admin/edit-post-drafts.php @@ -0,0 +1,7 @@ + \ No newline at end of file diff --git a/wp-admin/edit.php b/wp-admin/edit.php index e507392333..be3620df31 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -157,6 +157,7 @@ if ( is_single() ) {
diff --git a/wp-admin/menu.php b/wp-admin/menu.php index c035f685c0..7a3eb44f91 100644 --- a/wp-admin/menu.php +++ b/wp-admin/menu.php @@ -43,7 +43,7 @@ $menu[0] = array( __('Dashboard'), 'read', 'index.php' ); $menu[5] = array( __('Posts'), 'edit_posts', 'edit.php', 'wp-menu-open' ); $submenu['edit.php'][5] = array( __('Write'), 'edit_posts', 'post-new.php' ); - //$submenu['edit.php'][10] = array( __('Drafts'), 'edit_posts', 'edit.php?post_status=draft' ); + $submenu['edit.php'][10] = array( __('Drafts'), 'edit_posts', 'edit-post-drafts.php' ); $submenu['edit.php'][15] = array( __('View All'), 'edit_posts', 'edit.php' ); $submenu['edit.php'][20] = array( __('Tags'), 'manage_categories', 'edit-tags.php' ); $submenu['edit.php'][25] = array( __('Categories'), 'manage_categories', 'categories.php' ); diff --git a/wp-admin/post.php b/wp-admin/post.php index 70e43ca5b3..8d6d0e7df3 100644 --- a/wp-admin/post.php +++ b/wp-admin/post.php @@ -61,7 +61,7 @@ function redirect_post($post_ID = '') { } elseif (!empty($referredby) && $referredby != $referer) { $location = $_POST['referredby']; $location = remove_query_arg('_wp_original_http_referer', $location); - if ( false !== strpos($location, 'edit.php') ) + if ( false !== strpos($location, 'edit.php') || false !== strpos($location, 'edit-post-drafts.php') ) $location = add_query_arg('posted', $post_ID, $location); elseif ( false !== strpos($location, 'wp-admin') ) $location = "post-new.php?posted=$post_ID";