Rename new function to sanitize_html_class() to hilight exactly what it is for, Fixes #8446.

git-svn-id: https://develop.svn.wordpress.org/trunk@11435 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood
2009-05-22 21:31:42 +00:00
parent 7643338f75
commit 6bd9d1dfa5
3 changed files with 21 additions and 17 deletions
+1 -1
View File
@@ -294,7 +294,7 @@ function get_comment_class( $class = '', $comment_id = null, $post_id = null ) {
if ( $comment->user_id > 0 && $user = get_userdata($comment->user_id) ) {
// For all registered users, 'byuser'
$classes[] = 'byuser';
$classes[] = 'comment-author-' . sanitise_css_classname($user->user_nicename, $comment->user_id);
$classes[] = 'comment-author-' . sanitize_html_class($user->user_nicename, $comment->user_id);
// For comment authors who are the author of the post
if ( $post = get_post($post_id) ) {
if ( $comment->user_id === $post->post_author )