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
This commit is contained in:
nacin 2011-10-31 16:57:29 +00:00
parent efc7ca76d7
commit aa6eb9729a
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'];
}