Changeset 44067 for branches/4.1/src/wp-admin/includes/screen.php
- Timestamp:
- 12/13/2018 01:53:05 AM (7 years ago)
- Location:
- branches/4.1
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-admin/includes/screen.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.1
-
branches/4.1/src/wp-admin/includes/screen.php
r39767 r44067 449 449 switch ( $base ) { 450 450 case 'post' : 451 if ( isset( $_GET['post'] ) ) 451 if ( isset( $_GET['post'] ) && isset( $_POST['post_ID'] ) && (int) $_GET['post'] !== (int) $_POST['post_ID'] ) 452 wp_die( __( 'A post ID mismatch has been detected.' ), __( 'Sorry, you are not allowed to edit this item.' ), 400 ); 453 elseif ( isset( $_GET['post'] ) ) 452 454 $post_id = (int) $_GET['post']; 453 455 elseif ( isset( $_POST['post_ID'] ) )
Note: See TracChangeset
for help on using the changeset viewer.