[wp-trac] [WordPress Trac] #59086: Twenty Twenty Theme black background hides text editing after 6.3 update

WordPress Trac noreply at wordpress.org
Sun Aug 13 04:56:54 UTC 2023


#59086: Twenty Twenty Theme black background hides text editing after 6.3 update
---------------------------+------------------------------
 Reporter:  floydwilde     |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Bundled Theme  |     Version:  6.3
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:
---------------------------+------------------------------

Comment (by poena):

 In twentytwenty/inc/custom-css.php, the CSS selector for the text in the
 editor
 includes {{{body}}} before .editor-styles-wrapper, so the color is not
 applied.
 Removing {{{body}}} here solves the text color issue in WordPress 6.3.0.

 {{{
 // Text color.
 if ( $body && $body !== $body_default ) {
 twentytwenty_generate_css( 'body .editor-styles-wrapper, .editor-post-
 title__block .editor-post-title__input, .editor-post-title__block .editor-
 post-title__input:focus', 'color', $body );
 }}}


 The theme supports WordPress version 4.7 and up, so I suggest that the
 next task is either:
 -Remove the {{{body}}} from the selector for version 6.3.0 and up, which
 would be the fast way to do it;
 -Or, find out which WordPress version requires the {{{body}}} to be
 included, and if no versions require it, remove it.

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


More information about the wp-trac mailing list