From 3f7881b77a9d7a90ca37372dde42313e44d024e5 Mon Sep 17 00:00:00 2001 From: laurelfulford Date: Mon, 21 Jan 2019 22:07:33 +0000 Subject: [PATCH] Twenty Seventeen: Update blockquote alignment on load. The theme uses JavaScript to check if a right-aligned blockquote is below the sidebar content before pushing it outside of the content area. This was originally only firing on browser resize. Fixes #40103. git-svn-id: https://develop.svn.wordpress.org/trunk@44679 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-content/themes/twentyseventeen/assets/js/global.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-content/themes/twentyseventeen/assets/js/global.js b/src/wp-content/themes/twentyseventeen/assets/js/global.js index 6e2f42902e..b6322de44d 100644 --- a/src/wp-content/themes/twentyseventeen/assets/js/global.js +++ b/src/wp-content/themes/twentyseventeen/assets/js/global.js @@ -208,6 +208,7 @@ adjustHeaderHeight(); setQuotesIcon(); + belowEntryMetaClass( 'blockquote.alignleft, blockquote.alignright' ); if ( true === supportsInlineSVG() ) { document.documentElement.className = document.documentElement.className.replace( /(\s*)no-svg(\s*)/, '$1svg$2' ); }