From 743494b6543644ec777e4c903f46b6d2237ab3a0 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Fri, 29 Sep 2017 22:03:15 +0000 Subject: [PATCH] Customize: Remove unused JS variables to fix JSHint. Amends [41649]. See #37661, #39896. git-svn-id: https://develop.svn.wordpress.org/trunk@41650 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/js/customize-controls.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/wp-admin/js/customize-controls.js b/src/wp-admin/js/customize-controls.js index 1b54586cb1..70dff7403d 100644 --- a/src/wp-admin/js/customize-controls.js +++ b/src/wp-admin/js/customize-controls.js @@ -1910,8 +1910,7 @@ section = this, noFilter = ( undefined !== api.section( 'wporg_themes' ) && 'wporg' !== section.params.action ) ? '.no-themes-local' : '.no-themes', term = el.value.toLowerCase().trim().replace( '-', ' ' ), - controls = section.controls(), - renderScreenshots; + controls = section.controls(); if ( section.loading ) { return; @@ -7855,8 +7854,6 @@ } ); publishWhenTime = function() { - var publishSettingsSection; - api.state( 'selectedChangesetStatus' ).set( 'publish' ); api.previewer.save(); };