From af949b73ec6394cf31ebea79b6017fa2137f0a0d Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Mon, 8 May 2017 14:35:23 +0100 Subject: [PATCH] Add noscript style for gallery Fixes #14882 --- includes/wc-template-functions.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/includes/wc-template-functions.php b/includes/wc-template-functions.php index 2e0359e49da7c..e879e09a8c866 100644 --- a/includes/wc-template-functions.php +++ b/includes/wc-template-functions.php @@ -106,6 +106,18 @@ function wc_prevent_adjacent_posts_rel_link_wp_head() { } add_action( 'template_redirect', 'wc_prevent_adjacent_posts_rel_link_wp_head' ); +/** + * Show the gallery if JS is disabled. + * + * @since 3.0.6 + */ +function wc_gallery_noscript() { + ?> + +