Use ID, not user_id. Props filosofo. fixes #10709

git-svn-id: http://svn.automattic.com/wordpress/trunk@11990 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-10-01 17:52:01 +00:00
parent d89bf58bd3
commit 0c557fdb02
1 changed files with 1 additions and 1 deletions

View File

@ -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';