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

WordPress Trac noreply at wordpress.org
Fri Jan 28 18:56:04 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:
---------------------------+---------------------
Changes (by sabernhardt):

 * milestone:  Awaiting Review => 5.9.1


Comment:

 This is also reported in a [https://wordpress.org/support/topic/disabling-
 gutenberg-duotone-filter/ support topic], and a
 [https://github.com/WordPress/classic-editor/issues/176 Classic Editor
 issue] suggests fixing it in the plugin. However, I would like this to be
 fixed in Core.

 I tried this:
 {{{
 function wp_render_duotone_filter_preset( $preset ) {
         if ( false === apply_filters( 'use_block_editor_for_post', true )
 ) {
                 return;
         }
 }}}

 That removed the SVGs for me when I used the filter option to disable the
 block editor, but not when using common plugins
 ([https://wordpress.org/plugins/classic-editor/ Classic Editor] or
 [https://wordpress.org/plugins/disable-gutenberg/ Disable Gutenberg]).
 {{{
 add_filter( 'use_block_editor_for_post', '__return_false', 10 );
 }}}

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


More information about the wp-trac mailing list