From e9746944facd0dd612d4acdf0ef56156cb66a0a4 Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Fri, 22 Mar 2013 22:56:55 +0000 Subject: [PATCH] Twenty Ten: change gallery category post meta output to check for a "gallery" category using `get_term_by()` to avoid a possible WP_Error for an empty result by getting a false (boolean) return value instead. And, change link output to use `get_category_link()` instead of `get_term_link()`. Props SergeyBiryukov and keoshi, fixes #23837. git-svn-id: https://develop.svn.wordpress.org/trunk@23793 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-content/themes/twentyten/loop.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-content/themes/twentyten/loop.php b/wp-content/themes/twentyten/loop.php index 044e14f12b..082ee00990 100644 --- a/wp-content/themes/twentyten/loop.php +++ b/wp-content/themes/twentyten/loop.php @@ -92,8 +92,8 @@ ID ) ) : ?> | - - + term_id ) ) : ?> + |