Ticket #4471 (closed defect (bug): fixed)
wp-admin/includes/template.php references ocomment.php
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 2.2.1 |
| Component: | Administration | Version: | 2.2 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: |
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
Change History
alanjcastonguay — 5 years ago
-
attachment
wpadmin-includes-template.ocomment.diff
added
comment:1
foolswisdom — 5 years ago
- Keywords has-patch commit added
- Version changed from 2.3 to 2.2
- Milestone set to 2.1.2
- Owner changed from anonymous to rob1n
- Status changed from new to assigned
- Status changed from assigned to closed
- Resolution set to fixed
Note: See
TracTickets for help on using
tickets.

remove the o