wp/wp-admin/post-new.php
changeset 21 48c4eec2b7e6
parent 16 a86126ab1dd4
equal deleted inserted replaced
20:7b1b88e27a20 21:48c4eec2b7e6
     8 
     8 
     9 /** Load WordPress Administration Bootstrap */
     9 /** Load WordPress Administration Bootstrap */
    10 require_once __DIR__ . '/admin.php';
    10 require_once __DIR__ . '/admin.php';
    11 
    11 
    12 /**
    12 /**
    13  * @global string  $post_type
    13  * @global string       $post_type        Global post type.
    14  * @global object  $post_type_object
    14  * @global WP_Post_Type $post_type_object Global post type object.
    15  * @global WP_Post $post             Global post object.
    15  * @global WP_Post      $post             Global post object.
    16  */
    16  */
    17 global $post_type, $post_type_object, $post;
    17 global $post_type, $post_type_object, $post;
    18 
    18 
    19 if ( ! isset( $_GET['post_type'] ) ) {
    19 if ( ! isset( $_GET['post_type'] ) ) {
    20 	$post_type = 'post';
    20 	$post_type = 'post';