Make WordPress Core


Ignore:
Timestamp:
05/02/2006 09:56:59 PM (20 years ago)
Author:
ryan
Message:

wp_specialchars comment author name.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-admin/edit.php

    r3422 r3757  
    263263                        if ( current_user_can('edit_post', $post->ID) ) {
    264264                                echo "[ <a href=\"post.php?action=editcomment&amp;comment=".$comment->comment_ID."\">" .  __('Edit') . "</a>";
    265                                 echo " - <a href=\"post.php?action=deletecomment&amp;p=".$post->ID."&amp;comment=".$comment->comment_ID."\" onclick=\"return confirm('" . sprintf(__("You are about to delete this comment by \'%s\'\\n  \'OK\' to delete, \'Cancel\' to stop."), $comment->comment_author) . "')\">" . __('Delete') . "</a> ";
     265                                echo " - <a href=\"post.php?action=deletecomment&amp;p=".$post->ID."&amp;comment=".$comment->comment_ID."\" onclick=\"return confirm('" . sprintf(__("You are about to delete this comment by \'%s\'\\n  \'OK\' to delete, \'Cancel\' to stop."), wp_specialchars( $comment->comment_author, 1 )) . "')\">" . __('Delete') . "</a> ";
    266266                                if ( ('none' != $comment_status) && ( current_user_can('moderate_comments') ) ) {
    267267                                        if ('approved' == wp_get_comment_status($comment->comment_ID)) {
Note: See TracChangeset for help on using the changeset viewer.