[wp-trac] [WordPress Trac] #48734: Twenty Twenty: [em] tag with blank string inside ruins theme layout

WordPress Trac noreply at wordpress.org
Tue Nov 19 22:13:10 UTC 2019


#48734: Twenty Twenty: [em] tag with blank string inside ruins theme layout
-----------------------------------------------+-----------------------
 Reporter:  derlynad                           |       Owner:  audrasjb
     Type:  defect (bug)                       |      Status:  accepted
 Priority:  normal                             |   Milestone:  5.3.1
Component:  Bundled Theme                      |     Version:
 Severity:  normal                             |  Resolution:
 Keywords:  has-screenshots reporter-feedback  |     Focuses:
-----------------------------------------------+-----------------------

Comment (by derlynad):

 Replying to [comment:2 audrasjb]:
 > The issue doesn't appears anymore if I remove this bit of code from
 `functions.php`:
 >
 > {{{
 > /**
 >  * Output Customizer settings in the classic editor.
 >  * Adds styles to the head of the TinyMCE iframe. Kudos to @Otto42 for
 the original solution.
 >  *
 >  * @param array $mce_init TinyMCE styles.
 >  *
 >  * @return array $mce_init TinyMCE styles.
 >  */
 > function twentytwenty_add_classic_editor_customizer_styles( $mce_init )
 {
 >
 >       $styles = twentytwenty_get_customizer_css( 'classic-editor' );
 >
 >       if ( ! isset( $mce_init['content_style'] ) ) {
 >               $mce_init['content_style'] = $styles . ' ';
 >       } else {
 >               $mce_init['content_style'] .= ' ' . $styles . ' ';
 >       }
 >
 >       return $mce_init;
 >
 > }
 > }}}

 Tried to remove this fragment of code, but the issue is still here.

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


More information about the wp-trac mailing list