Make WordPress Core


Ignore:
Timestamp:
06/21/2016 02:43:26 PM (7 years ago)
Author:
rachelbaker
Message:

Revisions: Change the capability needed to view revision diffs to edit_post.

Merge of [37779] to the 4.2 branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2/src/wp-admin/revision.php

    r32116 r37799  
    6464        break;
    6565
    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 ) )
    6767        break;
    6868
Note: See TracChangeset for help on using the changeset viewer.