Changeset 44051 for branches/4.9/src/wp-admin/includes/class-wp-screen.php
- Timestamp:
- 12/13/2018 01:32:07 AM (6 years ago)
- Location:
- branches/4.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
-
branches/4.9/src/wp-admin/includes/class-wp-screen.php
r43502 r44051 271 271 switch ( $base ) { 272 272 case 'post' : 273 if ( isset( $_GET['post'] ) ) 273 if ( isset( $_GET['post'] ) && isset( $_POST['post_ID'] ) && (int) $_GET['post'] !== (int) $_POST['post_ID'] ) 274 wp_die( __( 'A post ID mismatch has been detected.' ), __( 'Sorry, you are not allowed to edit this item.' ), 400 ); 275 elseif ( isset( $_GET['post'] ) ) 274 276 $post_id = (int) $_GET['post']; 275 277 elseif ( isset( $_POST['post_ID'] ) )
Note: See TracChangeset
for help on using the changeset viewer.