mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 10:02:43 +01:00
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:
parent
1326405677
commit
8d01fc1f9a
@ -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'];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user