WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 3 years ago

#35518 closed defect (bug) (fixed)

Dashboard page: No "view" link for approved comment

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

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 4 years ago.
Dashboard screenshot

Download all attachments as: .zip

Change History (8)

@antonrinas
4 years ago

Dashboard screenshot

#1 @antonrinas
4 years ago

  • Severity changed from normal to trivial

#2 @SergeyBiryukov
4 years ago

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

#3 in reply to: ↑ description @antonrinas
4 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
4 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
4 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
4 years ago

  • Milestone changed from Future Release to 4.6

#7 @wonderboymusic
3 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.