forked from mirror/_s
Remove global variable.
This commit is contained in:
parent
b0a272a755
commit
e72ba5b291
|
@ -169,8 +169,6 @@ if ( ! function_exists( '_s_woocommerce_cart_link_fragment' ) ) {
|
|||
* @return array Fragments to refresh via AJAX
|
||||
*/
|
||||
function _s_woocommerce_cart_link_fragment( $fragments ) {
|
||||
global $woocommerce;
|
||||
|
||||
ob_start();
|
||||
_s_woocommerce_cart_link();
|
||||
$fragments['a.cart-contents'] = ob_get_clean();
|
||||
|
|
Reference in New Issue