[wp-trac] [WordPress Trac] #56962: current_user_can( 'read_post' ) not working.

WordPress Trac noreply at wordpress.org
Thu Nov 24 13:39:43 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 johnbillion):

 This isn't a breaking change or a deprecation, this is a fix for a bug
 that meant these capability checks only worked by accident in the past.
 Your PHP error log is probably full of PHP notices (or warnings in PHP 8)
 caused by this incorrect usage, see the discussion on #44591 for more
 details.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56962#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list