Make WordPress Core

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#4471 closed defect (bug) (fixed)

wp-admin/includes/template.php references ocomment.php

Reported by: alanjcastonguay's profile alanjcastonguay Owned by: rob1n's profile rob1n
Milestone: 2.2.1 Priority: normal
Severity: normal Version: 2.2
Component: Administration Keywords: has-patch commit
Focuses: 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&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> ';

Attachments (2)

wpadmin-includes-template.ocomment.diff (943 bytes) - added by alanjcastonguay 18 years ago.
remove the o
4471-2.2-admin-func-diff (2.1 KB) - added by foolswisdom 18 years ago.
2.2 branch patch

Download all attachments as: .zip

Change History (7)

#1 @foolswisdom
18 years ago

  • Keywords has-patch commit added
  • Milestone set to 2.1.2
  • Version changed from 2.3 to 2.2

#2 @foolswisdom
18 years ago

  • Milestone changed from 2.1.2 to 2.2.2

@foolswisdom
18 years ago

2.2 branch patch

#3 @rob1n
18 years ago

  • Owner changed from anonymous to rob1n
  • Status changed from new to assigned

#4 @rob1n
18 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [5710]) Fix reference to ocomment.php. Props alanjcastonguay and Lloyd. fixes #4471

#5 @foolswisdom
18 years ago

  • Milestone changed from 2.2.2 to 2.2.1

Fix included in 2.1rc2 .

Note: See TracTickets for help on using tickets.