Changeset 37800
- Timestamp:
- 06/21/2016 02:45:28 PM (7 years ago)
- Location:
- branches/4.1/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.1/src/wp-admin/includes/ajax-actions.php
r34153 r37800 2576 2576 wp_send_json_error(); 2577 2577 2578 if ( ! current_user_can( ' read_post', $post->ID ) )2578 if ( ! current_user_can( 'edit_post', $post->ID ) ) 2579 2579 wp_send_json_error(); 2580 2580 -
branches/4.1/src/wp-admin/revision.php
r30129 r37800 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.