[wp-trac] [WordPress Trac] #62629: Begin HTML markup before Customizer script hooks

WordPress Trac noreply at wordpress.org
Mon Dec 2 23:34:18 UTC 2024


#62629: Begin HTML markup before Customizer script hooks
-------------------------+------------------------------
 Reporter:  sabernhardt  |       Owner:  SergeyBiryukov
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Customize    |     Version:
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------------------
Changes (by SergeyBiryukov):

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


Comment:

 In [changeset:"59480" 59480]:
 {{{
 #!CommitTicketReference repository="" revision="59480"
 Customize: Begin HTML markup before Customizer script hooks.

 This prevents printing styles and scripts before the `<!DOCTYPE>`.

 The `_wp_admin_html_begin()` function should precede Customizer script
 hooks, in case a plugin prints markup inside a hook such as
 `admin_enqueue_scripts`.

 Follow-up to [19995], [27907].

 Props sabernhardt.
 Fixes #62629.
 }}}

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


More information about the wp-trac mailing list