WordPress.org

Make WordPress Core

Ticket #46981: 46981.diff

File 46981.diff, 1.5 KB (added by justinahinon, 6 months ago)
  • src/wp-content/themes/twentyseventeen/functions.php

     
    446446        wp_enqueue_style( 'twentyseventeen-fonts', twentyseventeen_fonts_url(), array(), null );
    447447
    448448        // 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' ) );
    450450
     451
    451452        // Theme block stylesheet.
    452453        wp_enqueue_style( 'twentyseventeen-block-style', get_theme_file_uri( '/assets/css/blocks.css' ), array( 'twentyseventeen-style' ), '1.1' );
    453454
  • src/wp-content/themes/twentysixteen/functions.php

     
    367367        wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.4.1' );
    368368
    369369        // Theme stylesheet.
    370         wp_enqueue_style( 'twentysixteen-style', get_stylesheet_uri() );
     370        wp_enqueue_style( 'twentysixteen-style', get_stylesheet_uri(), array(), wp_get_theme()->get( 'Version' ) );
    371371
    372372        // Theme block stylesheet.
    373373        wp_enqueue_style( 'twentysixteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentysixteen-style' ), '20181230' );