Allow wc_product_gallery to be called without any arguments.

This commit is contained in:
David Stone 2019-04-01 22:54:03 -06:00
parent d69f014807
commit 65c4d7d37c
1 changed files with 1 additions and 1 deletions

View File

@ -317,7 +317,7 @@ jQuery( function( $ ) {
* Function to call wc_product_gallery on jquery selector.
*/
$.fn.wc_product_gallery = function( args ) {
new ProductGallery( this, args );
new ProductGallery( this, args || wc_single_product_params );
return this;
};