Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#57120 closed defect (bug) (duplicate)

current_user_can( 'delete_post' ) function not working anymore

Reported by: taadike Owned by:
Priority: normal Milestone:
Component: Role/Capability Version: 6.1
Severity: normal Keywords:
Cc: Focuses:

Description

After updating WordPress to the latest version, this function does not return TRUE anymore:
if( current_user_can( 'delete_post' ) )

Please fix.

Change History (2)

#1 @SergeyBiryukov
4 years ago

  • Component GeneralRole/Capability
  • Summary function not working anymorecurrent_user_can( 'delete_post' ) function not working anymore
  • Version6.1

Hi there, welcome to WordPress Trac! Thanks for the report.

Just noting that this seems similar to #56962, the discussion in that ticket might be helpful.

#2 @SergeyBiryukov
4 years ago

  • Milestone Awaiting Review
  • Resolutionduplicate
  • Status newclosed

Going to close as a duplicate of #56962, which has some more details, to keep the discussion in one place.

Note: See TracTickets for help on using tickets.