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
|
* @return array Fragments to refresh via AJAX
|
||||||
*/
|
*/
|
||||||
function _s_woocommerce_cart_link_fragment( $fragments ) {
|
function _s_woocommerce_cart_link_fragment( $fragments ) {
|
||||||
global $woocommerce;
|
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
_s_woocommerce_cart_link();
|
_s_woocommerce_cart_link();
|
||||||
$fragments['a.cart-contents'] = ob_get_clean();
|
$fragments['a.cart-contents'] = ob_get_clean();
|
||||||
|
|
Reference in New Issue