Make WordPress Core


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

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

File:
1 edited

Legend:

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

    r37743 r37779  
    27792779        wp_send_json_error();
    27802780
    2781     if ( ! current_user_can( 'read_post', $post->ID ) )
     2781    if ( ! current_user_can( 'edit_post', $post->ID ) )
    27822782        wp_send_json_error();
    27832783
Note: See TracChangeset for help on using the changeset viewer.