Ticket #60779: 60779.diff
File 60779.diff, 1.9 KB (added by , 15 months ago) |
---|
-
src/wp-content/themes/twentytwenty/functions.php
192 192 wp_style_add_data( 'twentytwenty-style', 'rtl', 'replace' ); 193 193 194 194 // Enqueue the CSS file for the variable font, Inter. 195 wp_enqueue_style( 'twentytwenty-fonts', get_theme_file_uri( '/assets/css/font-inter.css' ), array(), wp_get_theme()->get( 'Version' ), 'all' );195 wp_enqueue_style( 'twentytwenty-fonts', get_theme_file_uri( '/assets/css/font-inter.css' ), array(), $theme_version, 'all' ); 196 196 197 197 // Add output of Customizer settings as inline style. 198 198 $customizer_css = twentytwenty_get_customizer_css( 'front-end' ); … … 425 425 */ 426 426 function twentytwenty_block_editor_styles() { 427 427 428 $theme_version = wp_get_theme()->get( 'Version' ); 429 428 430 // Enqueue the editor styles. 429 wp_enqueue_style( 'twentytwenty-block-editor-styles', get_theme_file_uri( '/assets/css/editor-style-block.css' ), array(), wp_get_theme()->get( 'Version' ), 'all' );431 wp_enqueue_style( 'twentytwenty-block-editor-styles', get_theme_file_uri( '/assets/css/editor-style-block.css' ), array(), $theme_version, 'all' ); 430 432 wp_style_add_data( 'twentytwenty-block-editor-styles', 'rtl', 'replace' ); 431 433 432 434 // Add inline style from the Customizer. … … 436 438 } 437 439 438 440 // Enqueue the CSS file for the variable font, Inter. 439 wp_enqueue_style( 'twentytwenty-fonts', get_theme_file_uri( '/assets/css/font-inter.css' ), array(), wp_get_theme()->get( 'Version' ), 'all' );441 wp_enqueue_style( 'twentytwenty-fonts', get_theme_file_uri( '/assets/css/font-inter.css' ), array(), $theme_version, 'all' ); 440 442 441 443 // Add inline style for non-latin fonts. 442 444 $custom_css = TwentyTwenty_Non_Latin_Languages::get_non_latin_css( 'block-editor' );