From 8d01fc1f9afa8b06adc56cf1c8d1bb10d347aa50 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Mon, 31 Oct 2011 16:57:29 +0000 Subject: [PATCH] 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 --- wp-admin/includes/screen.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/screen.php b/wp-admin/includes/screen.php index 4a3bf6bb42..239a593a68 100644 --- a/wp-admin/includes/screen.php +++ b/wp-admin/includes/screen.php @@ -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']; }