Ticket #19095: 19095.patch
File 19095.patch, 1.1 KB (added by , 14 years ago) |
---|
-
wp-admin/includes/screen.php
452 452 if ( $post ) 453 453 $post_type = $post->post_type; 454 454 } elseif ( isset( $_POST['post_type'] ) && post_type_exists( $_POST['post_type'] ) ) { 455 $post_type = $_ GET['post_type'];455 $post_type = $_POST['post_type']; 456 456 } elseif ( $action == 'add' && isset( $_GET['post_type'] ) && post_type_exists( $_GET['post_type'] ) ) { 457 457 $post_type = $_GET['post_type']; 458 458 } -
wp-admin/post.php
20 20 $post_id = $post_ID = (int) $_GET['post']; 21 21 elseif ( isset( $_POST['post_ID'] ) ) 22 22 $post_id = $post_ID = (int) $_POST['post_ID']; 23 else 23 elseif ( isset( $_POST['quickpress_post_ID'] ) ) 24 $post_id = $post_ID = (int) $_POST['quickpress_post_ID']; 25 else 24 26 $post_id = $post_ID = 0; 25 27 26 28 $post = $post_type = $post_type_object = null;