Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#35518 closed defect (bug) (fixed)

Dashboard page: No "view" link for approved comment

Reported by: antonrinas's profile antonrinas Owned by: wonderboymusic's profile wonderboymusic
Milestone: 4.6 Priority: normal
Severity: trivial Version: 4.4.1
Component: Comments Keywords: needs-patch
Focuses: ui, javascript, administration Cc:

Description

STEPS TO REPRODUCE:
Log in as administrator, create new post, log out,
log in as subscriber user, create new comment for created post, log out,
log in as administrator, make reply for unapproved subscriber comment on Dashboard page using hidden menu item "Reply".
EXPECTED RESULT: subscriber's comment became approved, link "View" is showed up if to hover this comment.
ACTUAL RESULT: subscriber's comment became approved, link "View" is absent if to hover this comment (see attachment).

Attachments (1)

Dashboard1.jpg (68.0 KB) - added by antonrinas 10 years ago.
Dashboard screenshot

Download all attachments as: .zip

Change History (8)

@antonrinas
10 years ago

Dashboard screenshot

#1 @antonrinas
10 years ago

  • Severity changed from normal to trivial

#2 @SergeyBiryukov
10 years ago

  • Component changed from Administration to Comments
  • Focuses ui administration added

#3 in reply to: ↑ description @antonrinas
10 years ago

And one more detail:
if to perform all steps from STEPS TO REPRODUCE group box "At a Glance" doesn't show total comments counter.

#4 @afercia
10 years ago

  • Focuses javascript added

Currently, the "View" action link gets printed out only for approved comments (approved at page load), see in _wp_dashboard_recent_comments_row()

if ( '1' === $comment->comment_approved ) {
	$actions['view'] = '<a class="comment-link" href=" ...
}

it should probably be always printed out and then dynamically displayed/hidden.

#5 @rachelbaker
10 years ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to Future Release

The reverse is also true, if you click the "Unapprove" action on a previously approved comment, the "View" action link is still visible.
https://cldup.com/eukvN5cz-k-1200x1200.png

#6 @rachelbaker
10 years ago

  • Milestone changed from Future Release to 4.6

#7 @wonderboymusic
10 years ago

  • Owner set to wonderboymusic
  • Resolution set to fixed
  • Status changed from new to closed

In 37302:

Dashboard: toggle the "View" link for comments when Approving / Unapproving from the Dashboard widget.

Fixes #35518.

Note: See TracTickets for help on using tickets.