Make WordPress Core


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-includes/comment-functions.php

    r3771 r3873  
    329329            echo ' class="'.$CSSclass.'"';
    330330        }
    331         echo ' title="' . sprintf( __('Comment on %s'), $post->post_title ) .'">';
     331        $title = wp_specialchars(apply_filters('the_title', get_the_title()));
     332        echo ' title="' . sprintf( __('Comment on %s'), $title ) .'">';
    332333        comments_number($zero, $one, $more, $number);
    333334        echo '</a>';
Note: See TracChangeset for help on using the changeset viewer.