[wp-trac] [WordPress Trac] #54941: Gutenberg is disabled but Duotone add severals SVG in front and back.

WordPress Trac noreply at wordpress.org
Sun Jan 30 19:28:17 UTC 2022


#54941: Gutenberg is disabled but Duotone add severals SVG in front and back.
---------------------------+---------------------
 Reporter:  deuxparquatre  |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  5.9.1
Component:  Editor         |     Version:  5.9
 Severity:  major          |  Resolution:
 Keywords:  needs-patch    |     Focuses:
---------------------------+---------------------

Comment (by chesio):

 I found out that removing global styles gets rid of the SVG markup (and
 global styles inline CSS that I also don't need in my theme...):

 {{{#!php
 <?php
 add_action('after_setup_theme', function () {
     remove_action('wp_enqueue_scripts', 'wp_enqueue_global_styles');
     remove_action('wp_footer', 'wp_enqueue_global_styles', 1);
 }, 10, 0);

 }}}

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


More information about the wp-trac mailing list