Changeset 37145 for trunk/src/wp-admin/includes/ajax-actions.php
- Timestamp:
- 03/30/2016 06:35:37 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r37143 r37145 2760 2760 2761 2761 if ( ! $post = get_post( (int) $_REQUEST['post_id'] ) ) 2762 wp_send_json_error( );2762 wp_send_json_error(111); 2763 2763 2764 2764 if ( ! current_user_can( 'read_post', $post->ID ) ) 2765 wp_send_json_error( );2765 wp_send_json_error(222); 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( );2769 wp_send_json_error(333); 2770 2770 2771 2771 $return = array(); … … 3318 3318 } 3319 3319 3320 check_ajax_referer( 'save_wporg_username_' . get_current_user_id() ); 3321 3320 3322 $username = isset( $_REQUEST['username'] ) ? wp_unslash( $_REQUEST['username'] ) : false; 3321 3323
Note: See TracChangeset
for help on using the changeset viewer.