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

WordPress Trac noreply at wordpress.org
Mon Oct 2 22:54:44 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-      |     Focuses:
  testing fixed-major                            |
-------------------------------------------------+-------------------------
Changes (by danielbachhuber):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"56758" 56758]:
 {{{
 #!CommitTicketReference repository="" revision="56758"
 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, azaozz.
 Merges [56529] and [56757] to the 6.3 branch.
 Fixes #59000.
 }}}

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


More information about the wp-trac mailing list