Changeset 37808
- Timestamp:
- 06/21/2016 02:49:46 PM (7 years ago)
- Location:
- branches/3.7/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.7/src/wp-admin/includes/ajax-actions.php
r34157 r37808 2227 2227 wp_send_json_error(); 2228 2228 2229 if ( ! current_user_can( ' read_post', $post->ID ) )2229 if ( ! current_user_can( 'edit_post', $post->ID ) ) 2230 2230 wp_send_json_error(); 2231 2231 -
branches/3.7/src/wp-admin/revision.php
r25881 r37808 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.