[wp-hackers] Delete a comment without javascript

Alan J Castonguay alan at verselogic.net
Fri Jun 15 06:13:51 GMT 2007


282:    echo ' | <a href="' . wp_nonce_url('ocomment.php? 
action=deletecomment&amp;p=' . $comment->comment_post_ID .  
'&amp;c=' . $comment->comment_ID, 'delete-comment_' . $comment- 
 >comment_ID) . '" onclick="return deleteSomething( \'comment\', ' .  
$comment->comment_ID . ', \'' . js_escape(sprintf(__("You are about  
to delete this comment by '%s'.\n'Cancel' to stop, 'OK' to delete."),  
$comment->comment_author)) . "', theCommentList );\">" . __ 
('Delete') . '</a> ';

This appears to have been around for a while now..

http://trac.wordpress.org/ticket/4471

On 15-Jun-07, at 12:32 AM, Dino Termini wrote:

> Hi all, I'd like to know if this one is a bug or something wrong  
> with my blog. I was trying some tools of my template and disabled  
> javascript on Firefox. Then I tried to delete a comment and it uses  
> an URL which starts with
>
> http://www.duechiacchiere.it/wp-admin/ocomment.php? 
> action=deletecomment [...]
>
> The file ocomment.php is not found, and a 404 error is thrown.
>
> -- 
> due chiacchiere <http://feeds.feedburner.com/duechiacchiere>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers



More information about the wp-hackers mailing list