Changeset 44050 for branches/5.0/src/wp-admin/includes/class-wp-screen.php
- Timestamp:
- 12/13/2018 01:29:42 AM (7 years ago)
- Location:
- branches/5.0
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-admin/includes/class-wp-screen.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0
-
branches/5.0/src/wp-admin/includes/class-wp-screen.php
r43807 r44050 279 279 switch ( $base ) { 280 280 case 'post' : 281 if ( isset( $_GET['post'] ) ) 281 if ( isset( $_GET['post'] ) && isset( $_POST['post_ID'] ) && (int) $_GET['post'] !== (int) $_POST['post_ID'] ) 282 wp_die( __( 'A post ID mismatch has been detected.' ), __( 'Sorry, you are not allowed to edit this item.' ), 400 ); 283 elseif ( isset( $_GET['post'] ) ) 282 284 $post_id = (int) $_GET['post']; 283 285 elseif ( isset( $_POST['post_ID'] ) )
Note: See TracChangeset
for help on using the changeset viewer.