From 04f6829b547ca4d003e9f03d18392ae53862ff82 Mon Sep 17 00:00:00 2001 From: Patski123 Date: Sun, 3 May 2026 14:14:46 +0000 Subject: [PATCH] Fix critical PHP error: remove WC()->query->get_catalog_ordering_args() call removed in WooCommerce 10.x --- theme/woocommerce/archive-product.php | 1 - 1 file changed, 1 deletion(-) diff --git a/theme/woocommerce/archive-product.php b/theme/woocommerce/archive-product.php index 5cb285e..140b9e2 100644 --- a/theme/woocommerce/archive-product.php +++ b/theme/woocommerce/archive-product.php @@ -85,7 +85,6 @@ $orderby = isset($_GET['orderby']) ? sanitize_text_field($_GET['orderby']) : 'me
query->get_catalog_ordering_args(); foreach (wc_get_catalog_ordering_args() as $val => $opt) { $current = (isset($_GET['orderby']) ? $_GET['orderby'] : get_option('woocommerce_default_catalog_orderby')) === $val; $url = add_query_arg('orderby', $val);