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:
parent
efc7ca76d7
commit
aa6eb9729a
|
@ -452,7 +452,7 @@ final class WP_Screen {
|
||||||
if ( $post )
|
if ( $post )
|
||||||
$post_type = $post->post_type;
|
$post_type = $post->post_type;
|
||||||
} elseif ( isset( $_POST['post_type'] ) && post_type_exists( $_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'] ) ) {
|
} elseif ( $action == 'add' && isset( $_GET['post_type'] ) && post_type_exists( $_GET['post_type'] ) ) {
|
||||||
$post_type = $_GET['post_type'];
|
$post_type = $_GET['post_type'];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue