Ticket #18408: 18408.6.diff
File 18408.6.diff, 772 bytes (added by , 16 months ago) |
---|
-
src/wp-admin/post.php
28 28 $post_ID = $post_id; 29 29 30 30 /** 31 * @global string $post_type 32 * @global object $post_type_object 33 * @global WP_Post $post Global post object. 31 * @global string $post_type 32 * @global object $post_type_object 33 * @global WP_Post $post Global post object. 34 * @global WP_Query $wp_query Global query object. 34 35 */ 35 36 global $post_type, $post_type_object, $post; 36 37 … … 39 40 } 40 41 41 42 if ( $post ) { 43 $wp_query->post = $post; 42 44 $post_type = $post->post_type; 43 45 $post_type_object = get_post_type_object( $post_type ); 44 46 }