[wp-trac] [WordPress Trac] #4471: wp-admin/includes/template.php
references ocomment.php
WordPress Trac
wp-trac at lists.automattic.com
Fri Jun 15 06:11:44 GMT 2007
#4471: wp-admin/includes/template.php references ocomment.php
-----------------------------+----------------------------------------------
Reporter: alanjcastonguay | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone:
Component: Administration | Version: 2.3
Severity: normal | Keywords:
-----------------------------+----------------------------------------------
on list:
----
Delete a comment without javascript
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.
----
source:/trunk/wp-admin/includes/template.php#L282
{{{
echo ' | <a href="' .
wp_nonce_url('ocomment.php?action=deletecomment&p=' .
$comment->comment_post_ID . '&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> ';
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/4471>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list