diff --git a/assets/js/frontend/cart-fragments.js b/assets/js/frontend/cart-fragments.js index e70ad4ad36c..c5eef7b4c72 100644 --- a/assets/js/frontend/cart-fragments.js +++ b/assets/js/frontend/cart-fragments.js @@ -180,7 +180,7 @@ jQuery( function( $ ) { wp.customize.widgetsPreview.WidgetPartial ); if ( hasSelectiveRefresh ) { - wp.customize.selectiveRefresh.on( 'partial-content-rendered', function() { + wp.customize.selectiveRefresh.bind( 'partial-content-rendered', function() { refresh_cart_fragment(); } ); }