Merge pull request #17520 from woocommerce/fix/17403
Fixes a flexslider bug when there is only 1 image on the product page.
This commit is contained in:
commit
120b67b8af
|
@ -100,6 +100,11 @@ jQuery( function( $ ) {
|
|||
this.photoswipe_enabled = false === args.photoswipe_enabled ? false : this.photoswipe_enabled;
|
||||
}
|
||||
|
||||
// ...and what is in the gallery.
|
||||
if ( 1 === this.$images.length ) {
|
||||
this.flexslider_enabled = false;
|
||||
}
|
||||
|
||||
// Bind functions to this.
|
||||
this.initFlexslider = this.initFlexslider.bind( this );
|
||||
this.initZoom = this.initZoom.bind( this );
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue