mirror of
https://github.com/woocommerce/storefront.git
synced 2025-08-20 04:00:29 +08:00
Add child theme version to wp_enqueue_style().
This commit is contained in:
parent
13618acfee
commit
f19333235c
1 changed files with 2 additions and 1 deletions
|
@ -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' ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue