- Timestamp:
- 04/16/2019 02:55:48 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyseventeen/functions.php
r44500 r45213 447 447 448 448 // Theme stylesheet. 449 wp_enqueue_style( 'twentyseventeen-style', get_stylesheet_uri() );449 wp_enqueue_style( 'twentyseventeen-style', get_stylesheet_uri(), array(), wp_get_theme()->get( 'Version' ) ); 450 450 451 451 // Theme block stylesheet. 452 wp_enqueue_style( 'twentyseventeen-block-style', get_theme_file_uri( '/assets/css/blocks.css' ), array( 'twentyseventeen-style' ), '1.1');452 wp_enqueue_style( 'twentyseventeen-block-style', get_theme_file_uri( '/assets/css/blocks.css' ), array( 'twentyseventeen-style' ), wp_get_theme()->get( 'Version' ) ); 453 453 454 454 // Load the dark colorscheme. 455 455 if ( 'dark' === get_theme_mod( 'colorscheme', 'light' ) || is_customize_preview() ) { 456 wp_enqueue_style( 'twentyseventeen-colors-dark', get_theme_file_uri( '/assets/css/colors-dark.css' ), array( 'twentyseventeen-style' ), '1.0');456 wp_enqueue_style( 'twentyseventeen-colors-dark', get_theme_file_uri( '/assets/css/colors-dark.css' ), array( 'twentyseventeen-style' ), wp_get_theme()->get( 'Version' ) ); 457 457 } 458 458 459 459 // Load the Internet Explorer 9 specific stylesheet, to fix display issues in the Customizer. 460 460 if ( is_customize_preview() ) { 461 wp_enqueue_style( 'twentyseventeen-ie9', get_theme_file_uri( '/assets/css/ie9.css' ), array( 'twentyseventeen-style' ), '1.0');461 wp_enqueue_style( 'twentyseventeen-ie9', get_theme_file_uri( '/assets/css/ie9.css' ), array( 'twentyseventeen-style' ), wp_get_theme()->get( 'Version' ) ); 462 462 wp_style_add_data( 'twentyseventeen-ie9', 'conditional', 'IE 9' ); 463 463 } 464 464 465 465 // Load the Internet Explorer 8 specific stylesheet. 466 wp_enqueue_style( 'twentyseventeen-ie8', get_theme_file_uri( '/assets/css/ie8.css' ), array( 'twentyseventeen-style' ), '1.0');466 wp_enqueue_style( 'twentyseventeen-ie8', get_theme_file_uri( '/assets/css/ie8.css' ), array( 'twentyseventeen-style' ), wp_get_theme()->get( 'Version' ) ); 467 467 wp_style_add_data( 'twentyseventeen-ie8', 'conditional', 'lt IE 9' ); 468 468 … … 508 508 function twentyseventeen_block_editor_styles() { 509 509 // Block styles. 510 wp_enqueue_style( 'twentyseventeen-block-editor-style', get_theme_file_uri( '/assets/css/editor-blocks.css' ), array(), '1.1');510 wp_enqueue_style( 'twentyseventeen-block-editor-style', get_theme_file_uri( '/assets/css/editor-blocks.css' ), array(), wp_get_theme()->get( 'Version' ) ); 511 511 // Add custom fonts. 512 512 wp_enqueue_style( 'twentyseventeen-fonts', twentyseventeen_fonts_url(), array(), null );
Note: See TracChangeset
for help on using the changeset viewer.