From 8e8ec6ec172b30adc38adf326ac01f7399e5d7ab Mon Sep 17 00:00:00 2001 From: Nick Fenwick Date: Mon, 6 Nov 2023 09:06:10 +0700 Subject: [PATCH] Make sort headings rel=nofollow, for SEO. Avoids unnecessary crawling of results pages by not following links that only change the sort order of results, not the actual content. --- includes/functions/functions_general.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/functions/functions_general.php b/includes/functions/functions_general.php index 94f21e5cd3..b6cd9afa2f 100644 --- a/includes/functions/functions_general.php +++ b/includes/functions/functions_general.php @@ -21,7 +21,7 @@ function zen_create_sort_heading($sortby, $colnum, $heading) $sort_suffix = ''; if ($sortby) { - $sort_prefix = ''; + $sort_prefix = ''; $sort_suffix = (substr($sortby, 0, 1) == $colnum ? (substr($sortby, 1, 1) == 'a' ? PRODUCT_LIST_SORT_ORDER_ASCENDING : PRODUCT_LIST_SORT_ORDER_DESCENDING) : '') . ''; }