Changeset 37779
- Timestamp:
- 06/21/2016 02:19:26 PM (9 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r37743 r37779 2779 2779 wp_send_json_error(); 2780 2780 2781 if ( ! current_user_can( ' read_post', $post->ID ) )2781 if ( ! current_user_can( 'edit_post', $post->ID ) ) 2782 2782 wp_send_json_error(); 2783 2783 -
trunk/src/wp-admin/revision.php
r33966 r37779 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.