- Timestamp:
- 03/30/2016 06:57:26 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r37145 r37148 2760 2760 2761 2761 if ( ! $post = get_post( (int) $_REQUEST['post_id'] ) ) 2762 wp_send_json_error( 111);2762 wp_send_json_error(); 2763 2763 2764 2764 if ( ! current_user_can( 'read_post', $post->ID ) ) 2765 wp_send_json_error( 222);2765 wp_send_json_error(); 2766 2766 2767 2767 // Really just pre-loading the cache here. 2768 2768 if ( ! $revisions = wp_get_post_revisions( $post->ID, array( 'check_enabled' => false ) ) ) 2769 wp_send_json_error( 333);2769 wp_send_json_error(); 2770 2770 2771 2771 $return = array();
Note: See TracChangeset
for help on using the changeset viewer.