Make WordPress Core


Ignore:
Timestamp:
04/20/2015 01:43:56 PM (10 years ago)
Author:
pento
Message:

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

Props helen, ocean90, dd32, pento.

File:
1 edited

Legend:

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

    r25868 r32206  
    659659
    660660    $comment_post_url = get_edit_post_link( $comment->comment_post_ID );
    661     $comment_post_title = strip_tags(get_the_title( $comment->comment_post_ID ));
     661    $comment_post_title = _draft_or_post_title( $comment->comment_post_ID );
    662662    $comment_post_link = "<a href='$comment_post_url'>$comment_post_title</a>";
    663663    $comment_link = '<a class="comment-link" href="' . esc_url(get_comment_link()) . '">#</a>';
Note: See TracChangeset for help on using the changeset viewer.