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() { + ?> + +