From: Laury GvR Date: Tue, 5 Dec 2017 19:01:34 +0000 (-0500) Subject: Added documentation to the shop category display file X-Git-Tag: v1.0.10^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=e354acfa02a7be028fd9ff4adadf3a2d4e6807ae;p=WP-Themes%2Fturkeyville.git Added documentation to the shop category display file --- diff --git a/parts/shop-cats-and-products.php b/parts/shop-cats-and-products.php index bb3c93b..d8ee7e7 100644 --- a/parts/shop-cats-and-products.php +++ b/parts/shop-cats-and-products.php @@ -1,6 +1,16 @@ - - prefix. Also applied to parent category if current category is a subcategory + * - Going into a product still shows the selected subcategory (see: if is_product()) + * + * FLAWS: + * - If a product has multiple categories assigned to it it may only recognise the last one + * (foreach $terms as $term --> $current_cat_id = $term->term_id) + * - There may be outlying situations where the default values (else) of id 0 and parent 0 are undesirable + */ + if (is_shop()) { $current_cat_id = 0; $current_cat_parent = 0; @@ -98,9 +108,7 @@ } } echo ''; - } - ?> \ No newline at end of file