Make WordPress Core

Opened 22 months ago

Last modified 20 months ago

#57432 new defect (bug)

Edit comments capability issue

Reported by: aitthemes's profile AitThemes Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Comments Keywords: needs-patch needs-testing-info
Focuses: Cc:

Description

If the user does not have capability to edit comments, the checkbox for Discussion - Allow comments disappears. This will store the null value into database and cause comments form as not visible.

Change History (4)

#1 @audrasjb
22 months ago

  • Component changed from General to Comments
  • Keywords needs-patch added
  • Version 6.1.1 deleted

Hello @AitThemes and welcome to WordPress Core Trac!

This sounds like a valid issue, thanks for pointing it out.

Choosing to display the comments/comment form shouldn't be related to the user's capability to edit comments.

This ticket was mentioned in Slack in #core-test by ironprogrammer. View the logs.


22 months ago

#3 @ironprogrammer
22 months ago

  • Keywords needs-testing-info added

It would be great if this report included steps to reproduce, so I'm marking with needs-testing-info.

@AitThemes, would you be able to provide additional details on the user roles involved, whether they are default WordPress roles, and if there are any plugins or themes that may impact this functionality? (Here is a test report template you might use for reference.)

#4 @studionashvegas
20 months ago

Attempted to reproduce this ticket running the WordPress Trunk environment (Fresh Install):

1) Create a user with contributor role (the lowest role with access to edit a post)
2) Created a new post with minimal content.
*) Both options in Discussions are visible
3) Published Post
4) Edited Post as Contributor User
*) Both options in Discussions are visible

User Role Editor shows that I have 0 permissions enabled regarding comments, but I'm still able to see the options in the Post Editor.

Sorry, I'm unable to reproduce this.

Note: See TracTickets for help on using tickets.