Changeset 38478 for trunk/src/wp-includes/class-wp-customize-nav-menus.php
- Timestamp:
- 08/31/2016 07:00:59 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-nav-menus.php
r38436 r38478 750 750 public function ajax_insert_auto_draft_post() { 751 751 if ( ! check_ajax_referer( 'customize-menus', 'customize-menus-nonce', false ) ) { 752 status_header( 400 ); 753 wp_send_json_error( 'bad_nonce' ); 752 wp_send_json_error( 'bad_nonce', 400 ); 754 753 } 755 754 756 755 if ( ! current_user_can( 'customize' ) ) { 757 status_header( 403 ); 758 wp_send_json_error( 'customize_not_allowed' ); 756 wp_send_json_error( 'customize_not_allowed', 403 ); 759 757 } 760 758 761 759 if ( empty( $_POST['params'] ) || ! is_array( $_POST['params'] ) ) { 762 status_header( 400 ); 763 wp_send_json_error( 'missing_params' ); 760 wp_send_json_error( 'missing_params', 400 ); 764 761 } 765 762
Note: See TracChangeset
for help on using the changeset viewer.