Make WordPress Core


Ignore:
Timestamp:
04/20/2015 01:41:34 PM (9 years ago)
Author:
pento
Message:

Ensure post titles are correctly escaped on the Dashboard. Merge of [32175] to the 3.8 branch.

Props helen, ocean90, dd32, pento.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.8/src/wp-admin/includes/dashboard.php

    r27001 r32205  
    431431
    432432    $comment_post_url = get_edit_post_link( $comment->comment_post_ID );
    433     $comment_post_title = strip_tags(get_the_title( $comment->comment_post_ID ));
     433    $comment_post_title = _draft_or_post_title( $comment->comment_post_ID );
    434434    $comment_post_link = "<a href='$comment_post_url'>$comment_post_title</a>";
    435435    $comment_link = '<a class="comment-link" href="' . esc_url(get_comment_link()) . '">#</a>';
Note: See TracChangeset for help on using the changeset viewer.