diff --git src/wp-includes/customize/class-wp-customize-selective-refresh.php src/wp-includes/customize/class-wp-customize-selective-refresh.php
index 23d5a94885..6c04a73698 100644
|
|
final class WP_Customize_Selective_Refresh { |
324 | 324 | */ |
325 | 325 | if ( ! is_customize_preview() ) { |
326 | 326 | wp_send_json_error( 'expected_customize_preview', 403 ); |
327 | | } else if ( ! isset( $_POST['partials'] ) ) { |
| 327 | } elseif ( ! isset( $_POST['partials'] ) ) { |
328 | 328 | wp_send_json_error( 'missing_partials', 400 ); |
329 | 329 | } |
330 | 330 | |
| 331 | // Ensure that doing selective refresh on 404 template doesn't result in fallback rendering behavior (full refreshes). |
| 332 | status_header( 200 ); |
| 333 | |
331 | 334 | $partials = json_decode( wp_unslash( $_POST['partials'] ), true ); |
332 | 335 | |
333 | 336 | if ( ! is_array( $partials ) ) { |