Changeset 44726
- Timestamp:
- 02/07/2019 04:11:23 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/post.php
r44565 r44726 17 17 wp_reset_vars( array( 'action' ) ); 18 18 19 if ( isset( $_GET['post'] ) ) { 19 if ( isset( $_GET['post'] ) && isset( $_POST['post_ID'] ) && (int) $_GET['post'] !== (int) $_POST['post_ID'] ) { 20 wp_die( __( 'A post ID mismatch has been detected.' ), __( 'Sorry, you are not allowed to edit this item.' ), 400 ); 21 } elseif ( isset( $_GET['post'] ) ) { 20 22 $post_id = $post_ID = (int) $_GET['post']; 21 23 } elseif ( isset( $_POST['post_ID'] ) ) { … … 39 41 $post_type = $post->post_type; 40 42 $post_type_object = get_post_type_object( $post_type ); 43 } 44 45 if ( isset( $_POST['post_type'] ) && $post && $post_type !== $_POST['post_type'] ) { 46 wp_die( __( 'A post type mismatch has been detected.' ), __( 'Sorry, you are not allowed to edit this item.' ), 400 ); 41 47 } 42 48
Note: See TracChangeset
for help on using the changeset viewer.