Ticket #59086: 59086-2.diff
File 59086-2.diff, 1.9 KB (added by , 13 months ago) |
---|
-
src/wp-content/themes/twentytwenty/functions.php
433 433 // Enqueue the editor script. 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 if ( version_compare( $GLOBALS['wp_version'], '6.3', '>=' ) && is_admin() ) { 437 add_action( 'enqueue_block_assets', 'twentytwenty_block_editor_styles', 1, 1 ); 438 } else { 439 add_action( 'enqueue_block_editor_assets', 'twentytwenty_block_editor_styles', 1, 1 ); 440 } 436 441 437 add_action( 'enqueue_block_editor_assets', 'twentytwenty_block_editor_styles', 1, 1 );438 439 442 /** 440 443 * Enqueue classic editor styles. 441 444 * -
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 if ( version_compare( $GLOBALS['wp_version'], '6.3', '<' ) ) { 149 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 ); 150 } else { 151 twentytwenty_generate_css( '.editor-styles-wrapper, .editor-post-title__block .editor-post-title__input, .editor-post-title__block .editor-post-title__input:focus', 'color', $body ); 152 } 149 153 } 150 154 151 155 // Secondary color.