-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Register Assets: cache bust without filemtime (#29775)
* Replaces filemtime when registering package styles. For production, uses GUTENBERG_VERSION. For dev, uses microtime(). * Replaces filemtime when registering package scripts. For production, uses GUTENBERG_VERSION. For dev, uses microtime(). * Improves comments. * Use time() instead of microtime(). * For consistency, use SCRIPT_DEBUG as dev/prod flag. * Check if GUTENBERG_VERSION is defined. Switches the check around to determine if in production mode: - GUTENBERG_VERSION is defined - SCRIPT_DEBUG is not defined || is not true. Else, defaults to time(). * Removes extra empty line (for phpcs).
- Loading branch information
Tonya Mork
authored
Mar 17, 2021
1 parent
23f4ee8
commit 3b2b118
Showing
1 changed file
with
25 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters