Skip to content

Commit 0586dd2

Browse files
Twenty Twenty-One: Consistently use theme version when enqueueing resources.
Follow-up to [49478], [49574]. Props sabernhardt. Fixes #64526. git-svn-id: https://develop.svn.wordpress.org/trunk@61500 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 16aa10f commit 0586dd2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,15 @@ public function editor_custom_color_variables() {
7070
'twentytwentyone-dark-mode-support-toggle',
7171
get_template_directory_uri() . '/assets/js/dark-mode-toggler.js',
7272
array(),
73-
'1.0.0',
73+
wp_get_theme()->get( 'Version' ),
7474
array( 'in_footer' => true )
7575
);
7676

7777
wp_enqueue_script(
7878
'twentytwentyone-editor-dark-mode-support',
7979
get_template_directory_uri() . '/assets/js/editor-dark-mode-support.js',
8080
array( 'twentytwentyone-dark-mode-support-toggle' ),
81-
'1.0.0',
81+
wp_get_theme()->get( 'Version' ),
8282
array( 'in_footer' => true )
8383
);
8484
}
@@ -116,7 +116,7 @@ public function customize_controls_enqueue_scripts() {
116116
'twentytwentyone-customize-controls',
117117
get_template_directory_uri() . '/assets/js/customize.js',
118118
array( 'customize-base', 'customize-controls', 'underscore', 'jquery', 'twentytwentyone-customize-helpers' ),
119-
'1.0.0',
119+
wp_get_theme()->get( 'Version' ),
120120
array( 'in_footer' => true )
121121
);
122122
}

0 commit comments

Comments
 (0)