Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
Merge pull request #79 from WordPress/enhance/cache-busting
Browse files Browse the repository at this point in the history
Add the plugin version when enqueueing styles, for cache busting.
  • Loading branch information
audrasjb committed Apr 16, 2020
2 parents b037a43 + db9eaef commit 7555053
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion functions.php
Expand Up @@ -13,7 +13,7 @@ function wp_autoupdates_enqueues( $hook ) {
if ( ! in_array( $hook, array( 'plugins.php', 'themes.php', 'update-core.php' ) ) ) {
return;
}
wp_register_style( 'wp-autoupdates', plugin_dir_url( __FILE__ ) . 'css/wp-autoupdates.css', array() );
wp_register_style( 'wp-autoupdates', plugin_dir_url( __FILE__ ) . 'css/wp-autoupdates.css', array(), WP_AUTO_UPDATES_VERSION );
wp_enqueue_style( 'wp-autoupdates' );

// Update core screen JS hack (due to lack of filters).
Expand Down
1 change: 1 addition & 0 deletions wp-autoupdates.php
Expand Up @@ -21,6 +21,7 @@
die( 'Invalid request.' );
}

define( 'WP_AUTO_UPDATES_VERSION', '0.5.0' );

/**
* Load only when needed.
Expand Down

0 comments on commit 7555053

Please sign in to comment.