Changeset 37146 for branches/4.4/src/wp-admin/includes/ajax-actions.php
- Timestamp:
- 03/30/2016 06:40:18 PM (9 years ago)
- Location:
- branches/4.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.4
-
branches/4.4/src/wp-admin/includes/ajax-actions.php
r37144 r37146 2753 2753 2754 2754 if ( ! $post = get_post( (int) $_REQUEST['post_id'] ) ) 2755 wp_send_json_error( );2755 wp_send_json_error(111); 2756 2756 2757 2757 if ( ! current_user_can( 'read_post', $post->ID ) ) 2758 wp_send_json_error( );2758 wp_send_json_error(222); 2759 2759 2760 2760 // Really just pre-loading the cache here. 2761 2761 if ( ! $revisions = wp_get_post_revisions( $post->ID, array( 'check_enabled' => false ) ) ) 2762 wp_send_json_error( );2762 wp_send_json_error(333); 2763 2763 2764 2764 $return = array(); … … 3311 3311 } 3312 3312 3313 check_ajax_referer( 'save_wporg_username_' . get_current_user_id() ); 3314 3313 3315 $username = isset( $_REQUEST['username'] ) ? wp_unslash( $_REQUEST['username'] ) : false; 3314 3316
Note: See TracChangeset
for help on using the changeset viewer.