WordPress.org

Make WordPress Core

Changeset 17395


Ignore:
Timestamp:
02/05/2011 06:26:46 PM (7 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

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

    r17356 r17395  
    271271        return;
    272272
    273     $title = esc_attr( trim( $post->post_title ) );
     273    $title = htmlspecialchars( trim( $post->post_title ), ENT_QUOTES );
    274274
    275275    echo '
Note: See TracChangeset for help on using the changeset viewer.