[wp-trac] [WordPress Trac] #58775: Remove usage of outputting styles tags

WordPress Trac noreply at wordpress.org
Mon Jul 10 20:29:37 UTC 2023


#58775: Remove usage of outputting styles tags
---------------------------+-----------------------------
 Reporter:  spacedmonkey   |      Owner:  (none)
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Script Loader  |    Version:
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 There are a number of places in core where style tags are manually built
 and output. Examples

 - print_emoji_styles
 - the_block_template_skip_link
 - print_embed_styles

 Instead of manually build tags like this, is not great. As these values
 are hard to filter and control the output of. These places should all be
 replaced with `wp_add_inline_style` or use the `WP_Style` enqueueing
 system.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58775>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list