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

git-svn-id: https://develop.svn.wordpress.org/trunk@11990 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-10-01 17:52:01 +00:00
parent 3f0243f75e
commit bb4c840efb
1 changed files with 1 additions and 1 deletions

View File

@ -409,7 +409,7 @@ function get_body_class( $class = '' ) {
if ( is_author() ) { if ( is_author() ) {
$author = $wp_query->get_queried_object(); $author = $wp_query->get_queried_object();
$classes[] = 'author'; $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() ) { } elseif ( is_category() ) {
$cat = $wp_query->get_queried_object(); $cat = $wp_query->get_queried_object();
$classes[] = 'category'; $classes[] = 'category';