Make WordPress Core


Ignore:
Timestamp:
11/28/2006 09:51:13 PM (19 years ago)
Author:
ryan
Message:

Use js_escape. Props nbachiyski. fixes #3399

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/moderation.php

    r4495 r4535  
    136136<p><?php comment_date('M j, g:i A'); ?> &#8212; [ <?php
    137137echo '<a href="comment.php?action=editcomment&amp;c='.$comment->comment_ID.'">' . __('Edit') . '</a> | ';
    138 echo " <a href=\"post.php?action=deletecomment&amp;p=".$comment->comment_post_ID."&amp;comment=".$comment->comment_ID."\" onclick=\"return deleteSomething( 'comment', $comment->comment_ID, '" . sprintf(__("You are about to delete this comment by &quot;%s&quot;.\\n&quot;Cancel&quot; to stop, &quot;OK&quot; to delete."), js_escape($comment->comment_author)) . "', theCommentList );\">" . __('Delete ') . "</a> | "; ?>
     138echo " <a href=\"post.php?action=deletecomment&amp;p=".$comment->comment_post_ID."&amp;comment=".$comment->comment_ID."\" onclick=\"return deleteSomething( 'comment', $comment->comment_ID, '" . js_escape(sprintf(__("You are about to delete this comment by &quot;%s&quot;.\\n&quot;Cancel&quot; to stop, &quot;OK&quot; to delete."), $comment->comment_author )) . "', theCommentList );\">" . __('Delete ') . "</a> | "; ?>
    139139<?php
    140140$post = get_post($comment->comment_post_ID);
Note: See TracChangeset for help on using the changeset viewer.