Make WordPress Core

Ticket #19095: 19095.patch

File 19095.patch, 1.1 KB (added by SergeyBiryukov, 14 years ago)
  • wp-admin/includes/screen.php

     
    452452                                                if ( $post )
    453453                                                        $post_type = $post->post_type;
    454454                                        } elseif ( isset( $_POST['post_type'] ) && post_type_exists( $_POST['post_type'] ) ) {
    455                                                 $post_type = $_GET['post_type'];
     455                                                $post_type = $_POST['post_type'];
    456456                                        } elseif ( $action == 'add' && isset( $_GET['post_type'] ) && post_type_exists( $_GET['post_type'] ) ) {
    457457                                                $post_type = $_GET['post_type'];
    458458                                        }
  • wp-admin/post.php

     
    2020        $post_id = $post_ID = (int) $_GET['post'];
    2121elseif ( isset( $_POST['post_ID'] ) )
    2222        $post_id = $post_ID = (int) $_POST['post_ID'];
    23  else
     23elseif ( isset( $_POST['quickpress_post_ID'] ) )
     24        $post_id = $post_ID = (int) $_POST['quickpress_post_ID'];
     25else
    2426        $post_id = $post_ID = 0;
    2527
    2628$post = $post_type = $post_type_object = null;