use class prop `flexslider_enabled` in `init_zoom`

This commit is contained in:
Manos Psychogyiopoulos 2017-03-14 13:44:45 +02:00
parent 4e48a2ddfa
commit fb6c1b09fc
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ jQuery( function( $ ) {
var zoom_target = gallery.$images,
enable_zoom = false;
if ( ! wc_single_product_params.flexslider_enabled ) {
if ( ! gallery.flexslider_enabled ) {
zoom_target = zoom_target.first();
}