From e343c99ccb3480008398b5e356058049623281a8 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Wed, 6 Dec 2017 18:09:49 +0000 Subject: [PATCH] Remove is_shortcode_loop --- includes/wc-conditional-functions.php | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/includes/wc-conditional-functions.php b/includes/wc-conditional-functions.php index 1894e277208..9ac6a3658a5 100644 --- a/includes/wc-conditional-functions.php +++ b/includes/wc-conditional-functions.php @@ -276,21 +276,6 @@ if ( ! function_exists( 'is_filtered' ) ) { } } -if ( ! function_exists( 'is_shortcode_loop' ) ) { - - /** - * Returns true when called within a loop generated by a products shortcode. - * - * @since 3.3.0 - * @return bool - */ - function is_shortcode_loop() { - global $woocommerce_loop; - - return apply_filters( 'woocommerce_is_shortcode_loop', ! empty( $woocommerce_loop['shortcode'] ) ); - } -} - if ( ! function_exists( 'taxonomy_is_product_attribute' ) ) { /**