Changeset 37797
- Timestamp:
- 06/21/2016 02:40:07 PM (8 years ago)
- Location:
- branches/4.3/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.3/src/wp-admin/includes/ajax-actions.php
r33468 r37797 2652 2652 wp_send_json_error(); 2653 2653 2654 if ( ! current_user_can( ' read_post', $post->ID ) )2654 if ( ! current_user_can( 'edit_post', $post->ID ) ) 2655 2655 wp_send_json_error(); 2656 2656 -
branches/4.3/src/wp-admin/revision.php
r32974 r37797 64 64 break; 65 65 66 if ( ! current_user_can( 'read_post', $revision->ID ) || ! current_user_can( ' read_post', $post->ID) )66 if ( ! current_user_can( 'read_post', $revision->ID ) || ! current_user_can( 'edit_post', $revision->post_parent ) ) 67 67 break; 68 68
Note: See TracChangeset
for help on using the changeset viewer.