Updating Twenty Nineteen, our new default theme for 2019, set for 5.0.

This update changes the following: 

- Add dynamic theme version to stylesheet enqueue.

Props grapplerulrich, kjellr.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43929 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
allancole 2018-11-21 22:42:16 +00:00
parent 691a74fe55
commit be920c82f5

View File

@ -217,7 +217,7 @@ add_action( 'after_setup_theme', 'twentynineteen_content_width', 0 );
* Enqueue scripts and styles.
*/
function twentynineteen_scripts() {
wp_enqueue_style( 'twentynineteen-style', get_stylesheet_uri() );
wp_enqueue_style( 'twentynineteen-style', get_stylesheet_uri(), array(), wp_get_theme()->get( 'Version' ) );
wp_style_add_data( 'twentynineteen-style', 'rtl', 'replace' );