Changeset 56783 for trunk/src/wp-content/themes/twentytwenty/functions.php
- Timestamp:
- 10/04/2023 08:54:34 PM (20 months ago)
- File:
-
- 1 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 /**
Note: See TracChangeset
for help on using the changeset viewer.