diff --git src/wp-admin/revision.php src/wp-admin/revision.php
index c86f78a451..35da8ad68e 100644
|
|
default : |
63 | 63 | if ( ! $post = get_post( $revision->post_parent ) ) |
64 | 64 | break; |
65 | 65 | |
66 | | if ( ! current_user_can( 'read_post', $revision->ID ) || ! current_user_can( 'edit_post', $revision->post_parent ) ) |
| 66 | if ( |
| 67 | ( |
| 68 | ! current_user_can( 'read_post', $revision->ID ) || |
| 69 | ! current_user_can( 'edit_post', $revision->post_parent ) |
| 70 | ) && |
| 71 | ( |
| 72 | ! current_user_can( 'read_revision', $revision->ID ) || |
| 73 | ! current_user_can( 'read_revisions', $revision->post_parent ) |
| 74 | ) |
| 75 | ) { |
67 | 76 | break; |
| 77 | } |
68 | 78 | |
69 | 79 | // Revisions disabled and we're not looking at an autosave |
70 | 80 | if ( ! wp_revisions_enabled( $post ) && ! wp_is_post_autosave( $revision ) ) { |