Make WordPress Core

Changeset 11352


Ignore:
Timestamp:
05/16/2009 02:23:12 AM (16 years ago)
Author:
ryan
Message:

strip tags on post titles in recent comments dashboard widget. Props Denis-de-Bernardy, mastermind. fixes #9138

File:
1 edited

Legend:

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

    r11318 r11352  
    524524
    525525    $comment_post_url = get_edit_post_link( $comment->comment_post_ID );
    526     $comment_post_title = get_the_title( $comment->comment_post_ID );
     526    $comment_post_title = strip_tags(get_the_title( $comment->comment_post_ID ));
    527527    $comment_post_link = "<a href='$comment_post_url'>$comment_post_title</a>";
    528528    $comment_link = '<a class="comment-link" href="' . get_comment_link() . '">#</a>';
Note: See TracChangeset for help on using the changeset viewer.