Remove global variable.

This commit is contained in:
Tiago Noronha 2017-08-07 00:00:35 +01:00
parent b0a272a755
commit e72ba5b291
1 changed files with 0 additions and 2 deletions

View File

@ -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();