diff --git a/src/wp-includes/customize/class-wp-customize-selective-refresh.php b/src/wp-includes/customize/class-wp-customize-selective-refresh.php index 73af9c9e23..2342aef9ba 100644 --- a/src/wp-includes/customize/class-wp-customize-selective-refresh.php +++ b/src/wp-includes/customize/class-wp-customize-selective-refresh.php @@ -188,7 +188,6 @@ final class WP_Customize_Selective_Refresh { 'clickEditWidget' => __( 'Click to edit this widget.' ), 'clickEditTitle' => __( 'Click to edit the site title.' ), 'clickEditMisc' => __( 'Click to edit this element.' ), - 'editShortcutVisibilityToggle' => __( 'Toggle edit shortcuts' ), /* translators: %s: document.write() */ 'badDocumentWrite' => sprintf( __( '%s is forbidden' ), 'document.write()' ), ), diff --git a/src/wp-includes/js/customize-selective-refresh.js b/src/wp-includes/js/customize-selective-refresh.js index 2b8cbef73d..70e2b96cc0 100644 --- a/src/wp-includes/js/customize-selective-refresh.js +++ b/src/wp-includes/js/customize-selective-refresh.js @@ -1006,18 +1006,6 @@ wp.customize.selectiveRefresh = ( function( $, api ) { } ); api.preview.bind( 'active', function() { - var body = $( document.body ), buttonText, $editShortcutVisibilityButton; - - // Add invisible button to toggle editShortcutVisibility. - if ( $( '.edit-shortcut-visibility-button' ).length < 1 ) { - buttonText = self.data.l10n.editShortcutVisibilityToggle || 'Toggle edit shortcuts'; - $editShortcutVisibilityButton = $( '' ); - $editShortcutVisibilityButton.text( buttonText ); - $editShortcutVisibilityButton.on( 'click', function() { - api.selectiveRefresh.editShortcutVisibility.set( 'visible' === api.selectiveRefresh.editShortcutVisibility.get() ? 'hidden' : 'visible' ); - } ); - body.prepend( $editShortcutVisibilityButton ); - } // Make all partials ready. self.partial.each( function( partial ) {