From 719ec3ae6d9e435aaa4a11f3d57f359d5526cf6b Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Fri, 12 Nov 2021 16:07:59 +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. Built from https://develop.svn.wordpress.org/trunk@52147 git-svn-id: http://core.svn.wordpress.org/trunk@51739 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentytwentyone/functions.php | 14 +++++++------- wp-includes/version.php | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/wp-content/themes/twentytwentyone/functions.php b/wp-content/themes/twentytwentyone/functions.php index 74d1d339f5..52c5bb5faf 100644 --- a/wp-content/themes/twentytwentyone/functions.php +++ b/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`. + ?> + + - -