No impact code

* Global variable `$woocommerce_loop` should not be reset before starting the loop. 
* Only the `loop` index should be set to 0 which is done in `woocommerce_product_loop_start`. Hence `$woocommerce_loop['loop'] = ''` is invalid.
* `$woocommerce['columns']` which is incorrectly set as `column` , if reset will not display the `first` and `last` clases for display no. of columns.
This commit is contained in:
Ibrahim 2016-06-09 19:22:37 +05:30
parent f47e9f4af5
commit 236cdb70c5
1 changed files with 0 additions and 3 deletions

View File

@ -267,9 +267,6 @@ class WC_Shortcodes {
ob_start();
// Reset loop/columns globals when starting a new loop
$woocommerce_loop['loop'] = $woocommerce_loop['column'] = '';
if ( $product_categories ) {
woocommerce_product_loop_start();