Changeset 38478
- Timestamp:
- 08/31/2016 07:00:59 PM (8 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 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 -
trunk/src/wp-includes/customize/class-wp-customize-selective-refresh.php
r38470 r38478 316 316 */ 317 317 if ( ! is_customize_preview() ) { 318 status_header( 403 ); 319 wp_send_json_error( 'expected_customize_preview' ); 318 wp_send_json_error( 'expected_customize_preview', 403 ); 320 319 } else if ( ! isset( $_POST['partials'] ) ) { 321 status_header( 400 ); 322 wp_send_json_error( 'missing_partials' ); 320 wp_send_json_error( 'missing_partials', 400 ); 323 321 } 324 322
Note: See TracChangeset
for help on using the changeset viewer.