From 9141add802383c7e568bbc13436d304c1212a1b6 Mon Sep 17 00:00:00 2001 From: nacin Date: Sun, 14 Feb 2010 11:52:27 +0000 Subject: [PATCH] Use $wp_query->get_queried_object(). Also move wp_head() to end of , see #9015. git-svn-id: http://svn.automattic.com/wordpress/trunk@13152 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyten/functions.php | 2 +- wp-content/themes/twentyten/header.php | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/wp-content/themes/twentyten/functions.php b/wp-content/themes/twentyten/functions.php index 7708b22131..4c22741fee 100644 --- a/wp-content/themes/twentyten/functions.php +++ b/wp-content/themes/twentyten/functions.php @@ -126,7 +126,7 @@ function twentyten_tag_list() { } function twentyten_term_list($taxonomy, $glue = ', ', $text = '', $also_text = '') { global $wp_query, $post; - $current_term = $wp_query->queried_object; + $current_term = $wp_query->get_queried_object(); $terms = wp_get_object_terms($post->ID, $taxonomy); // If we're viewing a Taxonomy page.. if ( isset($current_term->taxonomy) && $taxonomy == $current_term->taxonomy ) { diff --git a/wp-content/themes/twentyten/header.php b/wp-content/themes/twentyten/header.php index 9342adf4f1..366c91f54d 100644 --- a/wp-content/themes/twentyten/header.php +++ b/wp-content/themes/twentyten/header.php @@ -24,10 +24,8 @@ - - - + >