Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#13534 closed defect (bug) (fixed)

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

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


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)

comment:1 @hotforwords5 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));

comment:2 @hotforwords5 years ago

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

comment:3 @hotforwords5 years ago

  • Milestone changed from 3.0 to 2.9.3

comment:4 @nacin5 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.