Merge pull request #13309 from maximus80/master

fix photoswipe template be always loaded, even if lightbox is disabled
This commit is contained in:
Mike Jolley 2017-02-23 13:11:36 +00:00 committed by GitHub
commit 1552ed8d6d
1 changed files with 3 additions and 1 deletions

View File

@ -2474,7 +2474,9 @@ if ( ! function_exists( 'woocommerce_photoswipe' ) ) {
*
*/
function woocommerce_photoswipe() {
wc_get_template( 'single-product/photoswipe.php' );
if ( current_theme_supports( 'wc-product-gallery-lightbox' ) ) {
wc_get_template( 'single-product/photoswipe.php' );
}
}
}