Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#59929 closed defect (bug) (fixed)

Use post_password_required() for comment capability checks

Reported by: SergeyBiryukov Owned by:
Priority: normal Milestone: 6.5
Component: Comments Version: 6.3.2
Severity: normal Keywords: has-patch commit
Cc: Focuses:

Description

[56836] introduced a few capability checks with ! empty( $post->post_password ).

Generally, we use post_password_required() for similar checks elsewhere in core.

Unless I'm missing something, it can be used here as well.

Follow-up to [56836], [57123].

Attachments (1)

59929.diff​ (2.0 KB ) - added by SergeyBiryukov 3 years ago.

Download all attachments as: .zip

Change History (4)

This ticket was mentioned in ​Slack in #core by rajinsharwar. ​View the logs.


3 years ago

#2 @rajinsharwar
3 years ago

  • Keywords commit added

Thank you for the patch @SergeyBiryukov. I guess we can get this reviewed and committed soon within this cycle. Marking this for commit.

#3 @SergeyBiryukov
3 years ago

  • Resolution → fixed
  • Status new → closed

This was fixed in [57285], the commit missed the ticket.

Note: See TracTickets for help on using tickets.