From dcf81b3bbedcb26679df5c40871c6d4579ba0e71 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Mon, 1 Feb 2016 15:12:44 +0000 Subject: [PATCH] [2.5] Un-needed ob_start --- includes/class-wc-shortcodes.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/includes/class-wc-shortcodes.php b/includes/class-wc-shortcodes.php index e95bf1e8176..a76f640cc67 100644 --- a/includes/class-wc-shortcodes.php +++ b/includes/class-wc-shortcodes.php @@ -594,8 +594,6 @@ class WC_Shortcodes { $query_args = self::_maybe_add_category_args( $query_args, $atts['category'], $atts['operator'] ); - ob_start(); - add_filter( 'posts_clauses', array( __CLASS__, 'order_by_rating_post_clauses' ) ); $return = self::product_loop( $query_args, $atts, 'top_rated_products' );