From 5ec0fa0ace9a50e3d9ccbd04e13b1a0aaa4954be Mon Sep 17 00:00:00 2001 From: Rishabh Gupta Date: Mon, 31 Aug 2026 13:04:21 +0530 Subject: [PATCH] Twenty Seventeen: Recheck blockquote position when widgets change in the Customizer --- .../themes/twentyseventeen/assets/js/global.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/wp-content/themes/twentyseventeen/assets/js/global.js b/src/wp-content/themes/twentyseventeen/assets/js/global.js index cb9bc36624c02..5982f224a1828 100644 --- a/src/wp-content/themes/twentyseventeen/assets/js/global.js +++ b/src/wp-content/themes/twentyseventeen/assets/js/global.js @@ -244,6 +244,17 @@ setTimeout( adjustHeaderHeight, 1000 ); }); + // Recheck blockquote position when the Blog Sidebar changes in the Customizer. + $( function() { + if ( 'undefined' !== typeof wp && wp.customize && wp.customize.selectiveRefresh ) { + wp.customize.selectiveRefresh.bind( 'sidebar-updated', function( sidebarPartial ) { + if ( 'sidebar-1' === sidebarPartial.sidebarId ) { + belowEntryMetaClass( 'blockquote.alignleft, blockquote.alignright' ); + } + }); + } + }); + // Add header video class after the video is loaded. $( document ).on( 'wp-custom-header-video-loaded', function() { $body.addClass( 'has-header-video' );