Ticket #59086: 59086.3.diff
File 59086.3.diff, 1.6 KB (added by , 13 months ago) |
---|
-
src/wp-content/themes/twentytwenty/functions.php
434 434 wp_enqueue_script( 'twentytwenty-block-editor-script', get_theme_file_uri( '/assets/js/editor-script-block.js' ), array( 'wp-blocks', 'wp-dom' ), wp_get_theme()->get( 'Version' ), true ); 435 435 } 436 436 437 add_action( 'enqueue_block_editor_assets', 'twentytwenty_block_editor_styles', 1, 1 ); 437 if ( is_admin() && version_compare( $GLOBALS['wp_version'], '6.3', '>=' ) ) { 438 add_action( 'enqueue_block_assets', 'twentytwenty_block_editor_styles', 1, 1 ); 439 } else { 440 add_action( 'enqueue_block_editor_assets', 'twentytwenty_block_editor_styles', 1, 1 ); 441 } 438 442 439 443 /** 440 444 * Enqueue classic editor styles. -
src/wp-content/themes/twentytwenty/inc/custom-css.php
145 145 146 146 // Text color. 147 147 if ( $body && $body !== $body_default ) { 148 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 );148 twentytwenty_generate_css( 'html .editor-styles-wrapper, .editor-post-title__block .editor-post-title__input, .editor-post-title__block .editor-post-title__input:focus', 'color', $body ); 149 149 } 150 150 151 151 // Secondary color.