Changeset 3874

Show
Ignore:
Timestamp:
06/15/06 07:32:06 (2 years ago)
Author:
ryan
Message:

Specialchars title. Props David House and Mark Jaquith. fixes #2625

Files:

Legend:

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

    r3730 r3874  
    367367        echo ' class="'.$CSSclass.'"'; 
    368368    } 
    369     echo ' title="' . sprintf( __('Comment on %s'), $post->post_title ) .'">'; 
     369    $title = wp_specialchars(apply_filters('the_title', get_the_title())); 
     370    echo ' title="' . sprintf( __('Comment on %s'), $title ) .'">'; 
    370371    comments_number($zero, $one, $more, $number); 
    371372    echo '</a>';