[wp-trac] [WordPress Trac] #58394: Performance of wp_maybe_inline_styles

WordPress Trac noreply at wordpress.org
Tue Jun 13 09:51:26 UTC 2023


#58394: Performance of wp_maybe_inline_styles
--------------------------------------+---------------------------
 Reporter:  spacedmonkey              |       Owner:  spacedmonkey
     Type:  enhancement               |      Status:  reopened
 Priority:  normal                    |   Milestone:  6.3
Component:  Script Loader             |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  performance
--------------------------------------+---------------------------

Comment (by spacedmonkey):

 In [changeset:"55909" 55909]:
 {{{
 #!CommitTicketReference repository="" revision="55909"
 Script Loader: Add a check to see in style is registered in
 wp_maybe_inline_styles.

 Add a check in `wp_maybe_inline_styles` to check that style is registered
 before processing items in queue. It is possible that developers may have
 called `wp_deregister_style`, unregistering style but the style still be
 in the queue to be processed. Without this check, typing to access the
 `src` property would result in a notice error.

 Follow on from [55888].

 Props spacedmonkey, flixos90, dd32, kebbet.
 See #58394.
 }}}

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


More information about the wp-trac mailing list