Add child theme version to wp_enqueue_style().

This commit is contained in:
Tiago Noronha 2018-01-02 17:30:06 +00:00
parent 13618acfee
commit f19333235c

View file

@ -259,7 +259,8 @@ if ( ! class_exists( 'Storefront' ) ) :
*/
public function child_scripts() {
if ( is_child_theme() ) {
wp_enqueue_style( 'storefront-child-style', get_stylesheet_uri(), array() );
$child_theme = wp_get_theme( get_stylesheet() );
wp_enqueue_style( 'storefront-child-style', get_stylesheet_uri(), array(), $child_theme->get( 'Version' ) );
}
}