Changeset 44069 for branches/4.0/src/wp-admin/post.php
- Timestamp:
- 12/13/2018 01:55:22 AM (6 years ago)
- Location:
- branches/4.0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.0
-
branches/4.0/src/wp-admin/post.php
r33545 r44069 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'] ) ) … … 83 85 } 84 86 87 if ( isset( $_POST['post_type'] ) && $post && $post_type !== $_POST['post_type'] ) { 88 wp_die( __( 'A post type mismatch has been detected.' ), __( 'Sorry, you are not allowed to edit this item.' ), 400 ); 89 } 90 85 91 if ( isset( $_POST['deletepost'] ) ) 86 92 $action = 'delete';
Note: See TracChangeset
for help on using the changeset viewer.