mirror of
https://github.com/WordPress/WordPress.git
synced 2024-06-27 07:14:57 +02: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() ) {
|
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';
|
||||||
|
|
Loading…
Reference in New Issue
Block a user