Changeset 44050 for branches/5.0/src/wp-admin/post.php
- Timestamp:
- 12/13/2018 01:29:42 AM (6 years ago)
- Location:
- branches/5.0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0
-
branches/5.0/src/wp-admin/post.php
r44047 r44050 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'] ) ) … … 37 39 $post_type = $post->post_type; 38 40 $post_type_object = get_post_type_object( $post_type ); 41 } 42 43 if ( isset( $_POST['post_type'] ) && $post && $post_type !== $_POST['post_type'] ) { 44 wp_die( __( 'A post type mismatch has been detected.' ), __( 'Sorry, you are not allowed to edit this item.' ), 400 ); 39 45 } 40 46
Note: See TracChangeset
for help on using the changeset viewer.