Opened 2 years ago
Closed 2 years ago
#57120 closed defect (bug) (duplicate)
current_user_can( 'delete_post' ) function not working anymore
Reported by: | taadike | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 6.1 |
Component: | Role/Capability | Keywords: | |
Focuses: | Cc: |
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)
Note: See
TracTickets for help on using
tickets.
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.