WordPress.org

Make WordPress Core

Ticket #9432: 9432-comment-dashboard.patch

File 9432-comment-dashboard.patch, 981 bytes (added by hakre, 6 years ago)

clean_url()

  • wp-admin/includes/dashboard.php

     
    525525        $comment_post_url = get_edit_post_link( $comment->comment_post_ID ); 
    526526        $comment_post_title = get_the_title( $comment->comment_post_ID ); 
    527527        $comment_post_link = "<a href='$comment_post_url'>$comment_post_title</a>"; 
    528         $comment_link = '<a class="comment-link" href="' . get_comment_link() . '">#</a>'; 
     528        $comment_link = '<a class="comment-link" href="' . clean_url(get_comment_link()) . '">#</a>'; 
    529529 
    530530        $delete_url = clean_url( wp_nonce_url( "comment.php?action=deletecomment&p=$comment->comment_post_ID&c=$comment->comment_ID", "delete-comment_$comment->comment_ID" ) ); 
    531531        $approve_url = clean_url( wp_nonce_url( "comment.php?action=approvecomment&p=$comment->comment_post_ID&c=$comment->comment_ID", "approve-comment_$comment->comment_ID" ) );