Make WordPress Core

Opened 11 years ago

Closed 10 years ago

#35518 closed defect (bug) (fixed)

Dashboard page: No "view" link for approved comment

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

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

Download all attachments as: .zip

Change History (8)

@antonrinas
11 years ago

Dashboard screenshot

#1 @antonrinas
11 years ago

  • Severity normaltrivial

#2 @SergeyBiryukov
11 years ago

  • Component AdministrationComments
  • Focuses ui administration added

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

  • Keywords needs-patch added
  • Milestone Awaiting ReviewFuture 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 Future Release4.6

#7 @wonderboymusic
10 years ago

  • Owner set to wonderboymusic
  • Resolutionfixed
  • Status newclosed

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.