Fix copypasta in in WP_Screen. see #19095, props SergeyBiryukov.

git-svn-id: https://develop.svn.wordpress.org/trunk@19092 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2011-10-31 16:57:29 +00:00
parent 1326405677
commit 8d01fc1f9a
1 changed files with 1 additions and 1 deletions

View File

@ -452,7 +452,7 @@ final class WP_Screen {
if ( $post )
$post_type = $post->post_type;
} elseif ( isset( $_POST['post_type'] ) && post_type_exists( $_POST['post_type'] ) ) {
$post_type = $_GET['post_type'];
$post_type = $_POST['post_type'];
} elseif ( $action == 'add' && isset( $_GET['post_type'] ) && post_type_exists( $_GET['post_type'] ) ) {
$post_type = $_GET['post_type'];
}