Make WordPress Core


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

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

Merge of [37779] to the 3.8 branch.

File:
1 edited

Legend:

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

    r34156 r37805  
    22232223                wp_send_json_error();
    22242224
    2225         if ( ! current_user_can( 'read_post', $post->ID ) )
     2225        if ( ! current_user_can( 'edit_post', $post->ID ) )
    22262226                wp_send_json_error();
    22272227
Note: See TracChangeset for help on using the changeset viewer.