X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/607b7e02d77e7326161e8ec15639052d2040f745..16e7b37c7914d753890c1a05a9335f3b43751eb8:/wp-includes/customize/class-wp-customize-selective-refresh.php diff --git a/wp-includes/customize/class-wp-customize-selective-refresh.php b/wp-includes/customize/class-wp-customize-selective-refresh.php index 245d32a2..2342aef9 100644 --- a/wp-includes/customize/class-wp-customize-selective-refresh.php +++ b/wp-includes/customize/class-wp-customize-selective-refresh.php @@ -184,6 +184,10 @@ final class WP_Customize_Selective_Refresh { 'renderQueryVar' => self::RENDER_QUERY_VAR, 'l10n' => array( 'shiftClickToEdit' => __( 'Shift-click to edit this element.' ), + 'clickEditMenu' => __( 'Click to edit this menu.' ), + 'clickEditWidget' => __( 'Click to edit this widget.' ), + 'clickEditTitle' => __( 'Click to edit the site title.' ), + 'clickEditMisc' => __( 'Click to edit this element.' ), /* translators: %s: document.write() */ 'badDocumentWrite' => sprintf( __( '%s is forbidden' ), 'document.write()' ), ), @@ -307,19 +311,15 @@ final class WP_Customize_Selective_Refresh { return; } - $this->manager->remove_preview_signature(); - /* * Note that is_customize_preview() returning true will entail that the * user passed the 'customize' capability check and the nonce check, since * WP_Customize_Manager::setup_theme() is where the previewing flag is set. */ if ( ! is_customize_preview() ) { - status_header( 403 ); - wp_send_json_error( 'expected_customize_preview' ); + wp_send_json_error( 'expected_customize_preview', 403 ); } else if ( ! isset( $_POST['partials'] ) ) { - status_header( 400 ); - wp_send_json_error( 'missing_partials' ); + wp_send_json_error( 'missing_partials', 400 ); } $partials = json_decode( wp_unslash( $_POST['partials'] ), true );