Changeset 56783
- Timestamp:
- 10/04/2023 08:54:34 PM (14 months ago)
- Location:
- trunk/src/wp-content/themes/twentytwenty
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwenty/functions.php
r56569 r56783 417 417 * 418 418 * @since Twenty Twenty 1.0 419 * @since Twenty Twenty 2.4 Removed a script related to the obsolete Squared style of Button blocks. 419 420 */ 420 421 function twentytwenty_block_editor_styles() { … … 435 436 wp_add_inline_style( 'twentytwenty-block-editor-styles', $custom_css ); 436 437 } 437 438 // Enqueue the editor script. 439 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' ), array( 'in_footer' => true ) ); 440 } 441 442 add_action( 'enqueue_block_editor_assets', 'twentytwenty_block_editor_styles', 1, 1 ); 438 } 439 440 if ( is_admin() && version_compare( $GLOBALS['wp_version'], '6.3', '>=' ) ) { 441 add_action( 'enqueue_block_assets', 'twentytwenty_block_editor_styles', 1, 1 ); 442 } else { 443 add_action( 'enqueue_block_editor_assets', 'twentytwenty_block_editor_styles', 1, 1 ); 444 } 443 445 444 446 /** -
trunk/src/wp-content/themes/twentytwenty/inc/custom-css.php
r56548 r56783 145 145 // Text color. 146 146 if ( $body && $body !== $body_default ) { 147 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 );147 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 ); 148 148 } 149 149
Note: See TracChangeset
for help on using the changeset viewer.