From aa6eb9729a41d4acffadab4bfb29cc76209b427a Mon Sep 17 00:00:00 2001 From: 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: http://svn.automattic.com/wordpress/trunk@19092 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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']; }