From e4132b5a61c1392ea572645ff4d8b70cb33bc808 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Fri, 12 Nov 2021 16:06:35 +0000 Subject: [PATCH] Twenty Twenty-One: Prevent printing skip link focus fix when `SCRIPT_DEBUG` is enabled. An `else` statement was missing in `twenty_twenty_one_skip_link_focus_fix()`. See https://github.com/WordPress/twentytwentyone/pull/585/commits/ba83586ff1426fc4a0248f45d27ad0b4f5b7bbd4. Fixes #54429. git-svn-id: https://develop.svn.wordpress.org/trunk@52147 602fd350-edb4-49c9-b593-d223f7449a82 --- .../themes/twentytwentyone/functions.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/wp-content/themes/twentytwentyone/functions.php b/src/wp-content/themes/twentytwentyone/functions.php index 74d1d339f5..52c5bb5faf 100644 --- a/src/wp-content/themes/twentytwentyone/functions.php +++ b/src/wp-content/themes/twentytwentyone/functions.php @@ -496,14 +496,14 @@ function twenty_twenty_one_skip_link_focus_fix() { echo ''; + } else { + // The following is minified via `npx terser --compress --mangle -- assets/js/skip-link-focus-fix.js`. + ?> + + - -