From 5358f081be914d035b26bc8113d1818d6e7ba1ed Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Tue, 18 Mar 2014 18:34:26 +0000 Subject: [PATCH] Widget Customizer: Remove unused vars. see #27112. git-svn-id: https://develop.svn.wordpress.org/trunk@27588 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-customize-widgets.php | 1 - src/wp-includes/js/customize-preview-widgets.js | 3 --- 2 files changed, 4 deletions(-) diff --git a/src/wp-includes/class-wp-customize-widgets.php b/src/wp-includes/class-wp-customize-widgets.php index f52d59418a..ecddb3a620 100644 --- a/src/wp-includes/class-wp-customize-widgets.php +++ b/src/wp-includes/class-wp-customize-widgets.php @@ -735,7 +735,6 @@ class WP_Customize_Widgets { 'i18n' => array( 'widget_tooltip' => __( 'Press shift and then click to edit widget in customizer...' ), ), - 'request_uri' => wp_unslash( $_SERVER['REQUEST_URI'] ), ); foreach ( $exports['registered_widgets'] as &$registered_widget ) { unset( $registered_widget['callback'] ); // may not be JSON-serializeable diff --git a/src/wp-includes/js/customize-preview-widgets.js b/src/wp-includes/js/customize-preview-widgets.js index 5b10c2af28..004785174e 100644 --- a/src/wp-includes/js/customize-preview-widgets.js +++ b/src/wp-includes/js/customize-preview-widgets.js @@ -9,9 +9,6 @@ var WidgetCustomizerPreview = (function ($) { registered_sidebars: [], // @todo Make a Backbone collection registered_widgets: {}, // @todo Make array, Backbone collection widget_selectors: [], - render_widget_ajax_action: null, - render_widget_nonce_value: null, - render_widget_nonce_post_key: null, preview: null, i18n: {},