- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.8/wp-includes/comment-template.php
r11725 r11890 338 338 $classes = array_merge($classes, $class); 339 339 } 340 341 $classes = array_map('esc_attr', $classes); 340 342 341 343 return apply_filters('comment_class', $classes, $class, $comment_id, $post_id); … … 941 943 942 944 if ( 0 == $number && !comments_open() && !pings_open() ) { 943 echo '<span' . ((!empty($css_class)) ? ' class="' . $css_class. '"' : '') . '>' . $none . '</span>';945 echo '<span' . ((!empty($css_class)) ? ' class="' . esc_attr( $css_class ) . '"' : '') . '>' . $none . '</span>'; 944 946 return; 945 947 } … … 973 975 echo apply_filters( 'comments_popup_link_attributes', '' ); 974 976 975 echo ' title="' . sprintf( __('Comment on %s'), $title) . '">';977 echo ' title="' . esc_attr( sprintf( __('Comment on %s'), $title ) ) . '">'; 976 978 comments_number( $zero, $one, $more, $number ); 977 979 echo '</a>';
Note: See TracChangeset
for help on using the changeset viewer.