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