#4471 closed defect (bug) (fixed)
wp-admin/includes/template.php references ocomment.php
| Reported by: | alanjcastonguay | Owned by: | rob1n |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.2.1 |
| Component: | Administration | Version: | 2.2 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
Description
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> ';
Attachments (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
remove the o