WordPress.org

Make WordPress Core

Ticket #39997: 39997.1.diff

File 39997.1.diff, 4.5 KB (added by ianbelanger, 13 months ago)

Refreshed patch for 2012 - 2017 themes

  • src/wp-content/themes/twentyfifteen/functions.php

     
    367367        wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.2' );
    368368
    369369        // Load our main stylesheet.
    370         wp_enqueue_style( 'twentyfifteen-style', get_stylesheet_uri() );
     370        wp_enqueue_style( 'twentyfifteen-style', get_stylesheet_uri(), array(), wp_get_theme()->get( 'Version' ) );
    371371
    372372        // Theme block stylesheet.
    373373        wp_enqueue_style( 'twentyfifteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentyfifteen-style' ), '20181230' );
  • src/wp-content/themes/twentyfourteen/functions.php

     
    316316        wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.0.3' );
    317317
    318318        // Load our main stylesheet.
    319         wp_enqueue_style( 'twentyfourteen-style', get_stylesheet_uri() );
     319        wp_enqueue_style( 'twentyfourteen-style', get_stylesheet_uri(), array(), wp_get_theme()->get( 'Version' ) );
    320320
    321321        // Theme block stylesheet.
    322322        wp_enqueue_style( 'twentyfourteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentyfourteen-style' ), '20181230' );
  • 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
    451451        // Theme block stylesheet.
    452452        wp_enqueue_style( 'twentyseventeen-block-style', get_theme_file_uri( '/assets/css/blocks.css' ), array( 'twentyseventeen-style' ), '1.1' );
  • 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' );
  • src/wp-content/themes/twentythirteen/functions.php

     
    280280        wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.03' );
    281281
    282282        // Loads our main stylesheet.
    283         wp_enqueue_style( 'twentythirteen-style', get_stylesheet_uri(), array(), '2013-07-18' );
     283        wp_enqueue_style( 'twentythirteen-style', get_stylesheet_uri(), array(), wp_get_theme()->get( 'Version' ) );
    284284
    285285        // Theme block stylesheet.
    286286        wp_enqueue_style( 'twentythirteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentythirteen-style' ), '2018-12-30' );
  • src/wp-content/themes/twentytwelve/functions.php

     
    197197        }
    198198
    199199        // Loads our main stylesheet.
    200         wp_enqueue_style( 'twentytwelve-style', get_stylesheet_uri() );
     200        wp_enqueue_style( 'twentytwelve-style', get_stylesheet_uri(), array(), wp_get_theme()->get( 'Version' ) );
    201201
    202202        // Theme block stylesheet.
    203203        wp_enqueue_style( 'twentytwelve-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentytwelve-style' ), '20181230' );