Make WordPress Core


Ignore:
Timestamp:
02/05/2011 06:27:36 PM (15 years ago)
Author:
ryan
Message:

Properly encode the post title. Props koopersmith, nacin. For 3.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/wp-admin/includes/template.php

    r15452 r17397  
    11861186                return;
    11871187
    1188         $title = esc_attr( get_the_title( $post->ID ) );
     1188        $title = htmlspecialchars( trim( $post->post_title ), ENT_QUOTES );
    11891189
    11901190        echo '
Note: See TracChangeset for help on using the changeset viewer.