~canonical-sysadmins/wordpress/4.7.1

« back to all changes in this revision

Viewing changes to wp-admin/revision.php

  • Committer: Barry Price
  • Date: 2016-06-22 02:23:41 UTC
  • mfrom: (1.1.17 upstream)
  • Revision ID: barry.price@canonical.com-20160622022341-9qrp2nesacwfx017
Merge WP4.5.3 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
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( '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
 
69
69
        // Revisions disabled and we're not looking at an autosave