[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 20:45:45 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: needs-patch has-screenshots | Focuses:
-----------------------------------------+-----------------------
Comment (by 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;
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48734#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list