[wp-trac] [WordPress Trac] #59000: Add a check for wp_get_current_user to current_user_can

WordPress Trac noreply at wordpress.org
Wed Sep 6 21:46:25 UTC 2023


#59000: Add a check for wp_get_current_user to current_user_can
----------------------------------------------------+---------------------
 Reporter:  scruffian                               |       Owner:  azaozz
     Type:  defect (bug)                            |      Status:  closed
 Priority:  normal                                  |   Milestone:  6.3.2
Component:  Users                                   |     Version:  6.3
 Severity:  normal                                  |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests needs-testing  |     Focuses:
----------------------------------------------------+---------------------
Changes (by azaozz):

 * owner:  (none) => azaozz
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"56529" 56529]:
 {{{
 #!CommitTicketReference repository="" revision="56529"
 Editor: Prevent possibility of a fatal error when previewing block themes.

 Ensures that preview callbacks attached to the `stylesheet` and `template`
 filters do not run before `pluggable.php` has been included. These
 callbacks need functionality from `pluggable.php`.

 Props: scruffian, johnbillion, SergeyBiryukov, okat, okat.
 Fixes: #59000.
 }}}

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


More information about the wp-trac mailing list