Changeset 24406 for trunk/wp-admin/includes/misc.php
- Timestamp:
- 06/05/2013 12:13:40 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/misc.php
r24303 r24406 570 570 $checked = array(); 571 571 572 if ( 'edit-post' == $screen_id && array_key_exists( 'wp-check-locked ', $data ) && is_array( $data['wp-check-locked'] ) ) {573 foreach ( $data['wp-check-locked '] as $key ) {572 if ( 'edit-post' == $screen_id && array_key_exists( 'wp-check-locked-posts', $data ) && is_array( $data['wp-check-locked-posts'] ) ) { 573 foreach ( $data['wp-check-locked-posts'] as $key ) { 574 574 $post_id = (int) substr( $key, 5 ); 575 575 … … 586 586 587 587 if ( ! empty( $checked ) ) 588 $response['wp-check-locked '] = $checked;588 $response['wp-check-locked-posts'] = $checked; 589 589 590 590 return $response; … … 602 602 $send = array(); 603 603 604 if ( ! $post_id = absint( $received['post_id'] ) )604 if ( ! $post_id = absint( $received['post_id'] ) ) 605 605 return $response; 606 606 607 if ( ! current_user_can('edit_post', $post_id) )607 if ( ! current_user_can('edit_post', $post_id) ) 608 608 return $response; 609 609
Note: See TracChangeset
for help on using the changeset viewer.