mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
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:
parent
d89bf58bd3
commit
0c557fdb02
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user