Changeset 44061 for branches/4.4/src/wp-admin/includes/class-wp-screen.php
- Timestamp:
- 12/13/2018 01:46:24 AM (6 years ago)
- Location:
- branches/4.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.4
-
branches/4.4/src/wp-admin/includes/class-wp-screen.php
r39764 r44061 291 291 switch ( $base ) { 292 292 case 'post' : 293 if ( isset( $_GET['post'] ) ) 293 if ( isset( $_GET['post'] ) && isset( $_POST['post_ID'] ) && (int) $_GET['post'] !== (int) $_POST['post_ID'] ) 294 wp_die( __( 'A post ID mismatch has been detected.' ), __( 'Sorry, you are not allowed to edit this item.' ), 400 ); 295 elseif ( isset( $_GET['post'] ) ) 294 296 $post_id = (int) $_GET['post']; 295 297 elseif ( isset( $_POST['post_ID'] ) )
Note: See TracChangeset
for help on using the changeset viewer.