Make WordPress Core


Ignore:
Timestamp:
05/12/2009 05:11:57 PM (15 years ago)
Author:
ryan
Message:

Use IDs instead of slugs in CSS classes ro avoid invalid class names. Props hakre. fixes #8446

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment-template.php

    r11249 r11306  
    295295        // For all registered users, 'byuser'
    296296        $classes[] = 'byuser';
    297         $classes[] = 'comment-author-' . $user->user_nicename;
     297        $classes[] = 'comment-author-' . $user->user_id;
    298298        // For comment authors who are the author of the post
    299299        if ( $post = get_post($post_id) ) {
Note: See TracChangeset for help on using the changeset viewer.