WordPress.org

Make WordPress Core

Ticket #10709: author_id_problem.10709.diff

File author_id_problem.10709.diff, 609 bytes (added by filosofo, 5 years ago)
  • wp-includes/post-template.php

     
    409409                if ( is_author() ) { 
    410410                        $author = $wp_query->get_queried_object(); 
    411411                        $classes[] = 'author'; 
    412                         $classes[] = 'author-' . sanitize_html_class($author->user_nicename , $author->user_id); 
     412                        $classes[] = 'author-' . sanitize_html_class($author->user_nicename , $author->ID); 
    413413                } elseif ( is_category() ) { 
    414414                        $cat = $wp_query->get_queried_object(); 
    415415                        $classes[] = 'category';