From 39f4dec907ba21f012ce1b5792b19ce8f7eb7079 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Wed, 18 Apr 2018 13:12:21 -0400 Subject: [PATCH] Fixed Blog footer links to Uncategorized Links to Uncategorized would break because of improper retrieval of the category's slug. This has been fixed. So too has the awkward comma in "This has been posted in, Uncategorized." Fix applied to archive.php, single.php and home.php --- archive.php | 4 ++-- home.php | 4 ++-- single.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/archive.php b/archive.php index fe9e13d..863c3a0 100644 --- a/archive.php +++ b/archive.php @@ -52,7 +52,7 @@ $cat = get_category( $c ); $cats[] = array( 'name' => $cat->name, 'slug' => $cat->slug ); - echo ''. $cat->name .', '; + echo ''. $cat->name .', '; } } $post_tags = wp_get_post_tags( get_the_ID() ); @@ -62,7 +62,7 @@ foreach($post_tags as $t){ $tag = get_tag( $t ); $tags[] = array( 'name' => $tag->name, 'slug' => $tag->slug ); - echo ''. $tag->name .', '; + echo ''. $tag->name .', '; } } diff --git a/home.php b/home.php index c3e4f88..aeb807b 100644 --- a/home.php +++ b/home.php @@ -51,7 +51,7 @@ $cat = get_category( $c ); $cats[] = array( 'name' => $cat->name, 'slug' => $cat->slug ); - echo ''. $cat->name .', '; + echo ''. $cat->name .', '; } } $post_tags = wp_get_post_tags( get_the_ID() ); @@ -61,7 +61,7 @@ foreach($post_tags as $t){ $tag = get_tag( $t ); $tags[] = array( 'name' => $tag->name, 'slug' => $tag->slug ); - echo ''. $tag->name .', '; + echo ''. $tag->name .', '; } } diff --git a/single.php b/single.php index 6ced5a4..32b39fa 100644 --- a/single.php +++ b/single.php @@ -49,7 +49,7 @@ $cat = get_category( $c ); $cats[] = array( 'name' => $cat->name, 'slug' => $cat->slug ); - echo ''. $cat->name .', '; + echo ''. $cat->name .', '; } } $post_tags = wp_get_post_tags( get_the_ID() ); @@ -59,7 +59,7 @@ foreach($post_tags as $t){ $tag = get_tag( $t ); $tags[] = array( 'name' => $tag->name, 'slug' => $tag->slug ); - echo ''. $tag->name .', '; + echo ''. $tag->name .', '; } } -- 2.17.1