From bb4c840efb5874131c402b9b21ea53858cc82bf5 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 1 Oct 2009 17:52:01 +0000 Subject: [PATCH] Use ID, not user_id. Props filosofo. fixes #10709 git-svn-id: https://develop.svn.wordpress.org/trunk@11990 602fd350-edb4-49c9-b593-d223f7449a82 --- 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';