From 0c557fdb020142aff31fef114328e6f85ab91ef0 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 1 Oct 2009 17:52:01 +0000 Subject: [PATCH] Use ID, not user_id. Props filosofo. fixes #10709 git-svn-id: http://svn.automattic.com/wordpress/trunk@11990 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index 39ee504bb0..da1582e11e 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -409,7 +409,7 @@ function get_body_class( $class = '' ) { if ( is_author() ) { $author = $wp_query->get_queried_object(); $classes[] = 'author'; - $classes[] = 'author-' . sanitize_html_class($author->user_nicename , $author->user_id); + $classes[] = 'author-' . sanitize_html_class($author->user_nicename , $author->ID); } elseif ( is_category() ) { $cat = $wp_query->get_queried_object(); $classes[] = 'category';