[wp-trac] [WordPress Trac] #56962: current_user_can( 'read_post' ) not working.
WordPress Trac
noreply at wordpress.org
Thu Nov 24 13:28:13 UTC 2022
#56962: current_user_can( 'read_post' ) not working.
-----------------------------+----------------------
Reporter: jcorbin | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Role/Capability | Version: 6.1
Severity: major | Resolution: wontfix
Keywords: close | Focuses:
-----------------------------+----------------------
Comment (by pikamander2):
We ran into the same issue with save_post, where it suddenly began return
false instead of true, even for administrators.
Changing it to save_posts worked, though it was frustrating to debug
because there was no warning or error being thrown.
Ideally, I think that a breaking change in behavior like this should be
accompanied by a deprecation warning.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56962#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list