Make WordPress Core


Ignore:
Timestamp:
06/21/2016 02:45:28 PM (10 years ago)
Author:
rachelbaker
Message:

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

Merge of [37779] to the 4.1 branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.1/src/wp-admin/includes/ajax-actions.php

    r34153 r37800  
    25762576                wp_send_json_error();
    25772577
    2578         if ( ! current_user_can( 'read_post', $post->ID ) )
     2578        if ( ! current_user_can( 'edit_post', $post->ID ) )
    25792579                wp_send_json_error();
    25802580
Note: See TracChangeset for help on using the changeset viewer.