WordPress.org

Make WordPress Core

Changeset 3874


Ignore:
Timestamp:
06/15/2006 07:32:06 AM (15 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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>';
Note: See TracChangeset for help on using the changeset viewer.