Changeset 45583 for trunk/src/wp-admin/post.php
- Timestamp:
- 07/01/2019 12:50:14 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/post.php
r44726 r45583 20 20 wp_die( __( 'A post ID mismatch has been detected.' ), __( 'Sorry, you are not allowed to edit this item.' ), 400 ); 21 21 } elseif ( isset( $_GET['post'] ) ) { 22 $post_id = $post_ID =(int) $_GET['post'];22 $post_id = (int) $_GET['post']; 23 23 } elseif ( isset( $_POST['post_ID'] ) ) { 24 $post_id = $post_ID =(int) $_POST['post_ID'];24 $post_id = (int) $_POST['post_ID']; 25 25 } else { 26 $post_id = $post_ID = 0; 27 } 26 $post_id = 0; 27 } 28 $post_ID = $post_id; 28 29 29 30 /** … … 242 243 } 243 244 244 if ( $user_id = wp_check_post_lock( $post_id ) ) { 245 $user_id = wp_check_post_lock( $post_id ); 246 if ( $user_id ) { 245 247 $user = get_userdata( $user_id ); 246 248 wp_die( sprintf( __( 'You cannot move this item to the Trash. %s is currently editing.' ), $user->display_name ) );
Note: See TracChangeset
for help on using the changeset viewer.