]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/revision.php
Wordpress 4.5.3
[autoinstalls/wordpress.git] / wp-admin / revision.php
index 4d86c536b9a77a370b4277362818d4276e31fa85..d63b26bbf953f9b2ad599a42c3df3e0ab582a8c4 100644 (file)
@@ -63,7 +63,7 @@ default :
        if ( ! $post = get_post( $revision->post_parent ) )
                break;
 
-       if ( ! current_user_can( 'read_post', $revision->ID ) || ! current_user_can( 'read_post', $post->ID ) )
+       if ( ! current_user_can( 'read_post', $revision->ID ) || ! current_user_can( 'edit_post', $revision->post_parent ) )
                break;
 
        // Revisions disabled and we're not looking at an autosave