Make WordPress Core


Ignore:
Timestamp:
04/20/2015 07:38:29 AM (10 years ago)
Author:
pento
Message:

Ensure post titles are correctly escaped on the Dashboard.

Props helen, ocean90, dd32, pento.

File:
1 edited

Legend:

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

    r32116 r32175  
    521521    $GLOBALS['comment'] =& $comment;
    522522
    523     $comment_post_title = strip_tags(get_the_title( $comment->comment_post_ID ));
     523    $comment_post_title = _draft_or_post_title( $comment->comment_post_ID );
    524524
    525525    if ( current_user_can( 'edit_post', $comment->comment_post_ID ) ) {
Note: See TracChangeset for help on using the changeset viewer.