Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#13534 closed defect (bug) (fixed)

Admin Edit Comments Page - comment links broken UNLESS you are an Editor or Admin

Reported by: hotforwords's profile hotforwords Owned by:
Milestone: 3.0 Priority: normal
Severity: normal Version: 2.9.2
Component: Administration Keywords: comment links, admin
Focuses: Cc:

Description

The link to a comment in the All Comments (Edit Comments) area of the Admin area do not take you to the actual comment UNLESS you are logged in as an Admin or an Editor.

This does not make sense as the links in the Admin Dashboard Comments area DO take you to the actual comment even if not an Admin or Editor.

I have contributors who need to search for and go directly to comments in the back-end but for some reason the link (the highlighted time of the comment) only takes you back to the Admin area if you are not logged in as an Editor or Administrator.

Change History (4)

#1 @hotforwords
15 years ago

I found the solution to the problem that now gives the correct link:

Take wp-admin/includes/template.php

On line 2117 move:

$comment_url = esc_url(get_comment_link($comment->comment_ID));

To line 2126 just after the closing bracket (This moves it outside of the if user can statement as there is no reason for it to be there.)

}  
$comment_url = esc_url(get_comment_link($comment->comment_ID));

#2 @hotforwords
15 years ago

  • Component changed from General to Administration
  • Milestone changed from Unassigned to 3.0

#3 @hotforwords
15 years ago

  • Milestone changed from 3.0 to 2.9.3

#4 @nacin
15 years ago

  • Milestone changed from 2.9.3 to 3.0
  • Resolution set to fixed
  • Status changed from new to closed

This was caught and fixed in 3.0. [13288]

Note: See TracTickets for help on using tickets.