[wp-trac] [WordPress Trac] #56962: current_user_can( 'read_post' ) not working.
WordPress Trac
noreply at wordpress.org
Wed Nov 2 15:27:48 UTC 2022
#56962: current_user_can( 'read_post' ) not working.
--------------------------+-----------------------------
Reporter: jcorbin | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version: 6.1
Severity: major | Keywords:
Focuses: |
--------------------------+-----------------------------
current_user_can( 'read_post' ) is not working in our case.
current 6.0.3 sites (https://upstatetoday.com for instance) feature the
following in out single.php:
if (
current_user_can( 'read_post' )
... Allow access...
This exists so that logged in WP users in WP backend can see the actual
content, no our paywall)
In WP 6.1 current_user_can( 'read_post' ) does not appear to work;
logged in WP admins, etc are given the paywall.
rolling back to 6.0.3 fixes this.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56962>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list