Opened 13 years ago
Closed 10 years ago
#24648 closed defect (bug) (fixed)
Don't exclude uneditable comments in wp_ajax_get_comments
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.6 | Priority: | normal |
| Severity: | normal | Version: | 3.3 |
| Component: | Comments | Keywords: | has-patch |
| Focuses: | Cc: |
Description
The editing links will not be shown in the row actions anyway, if the user cannot edit that comment. Why not display the comment?
Attachments (2)
Change History (11)
This ticket was mentioned in Slack in #core-comments by rachelbaker. View the logs.
10 years ago
#4
@
10 years ago
- Keywords needs-testing added; dev-feedback removed
- Milestone changed from Awaiting Review to Future Release
Looks like in wp_dashboard_recent_comments() we display a comment if the user has read_post. As long as un-approved comments aren't being shown the edit_comment capability check isn't needed.
#6
@
10 years ago
- Milestone changed from Future Release to 4.6
In 24648.2.patch I kept the conditional capability check, but allow approved comments to be viewed. This matches the behavior of the Recent Comments dashboard widget.
@jfarthing84 Does this logic make sense to you?
#7
@
10 years ago
Given this was over 3+ years ago - I forget my original intention. But, that's definitely better than what's there now.
Introduced in [18435].