Merge pull request #13309 from maximus80/master
fix photoswipe template be always loaded, even if lightbox is disabled
This commit is contained in:
commit
1552ed8d6d
|
@ -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' );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue