[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:40:50 UTC 2023


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

Comment (by danielbachhuber):

 In [changeset:"56757" 56757]:
 {{{
 #!CommitTicketReference repository="" revision="56757"
 Editor: Add function prefix to avoid conflicts.

 Transforms `initialize_theme_preview_hooks` to
 `wp_initialize_theme_preview_hooks` to avoid conflicts with third-party
 code.

 Follow up to [56529].

 Props okat.
 See #59000.
 }}}

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


More information about the wp-trac mailing list