Skip to content

Use filemtime to set the asset's version#1693

Merged
amieiro merged 1 commit into
GlotPress:developfrom
amieiro:filemtime-assets
Sep 20, 2023
Merged

Use filemtime to set the asset's version#1693
amieiro merged 1 commit into
GlotPress:developfrom
amieiro:filemtime-assets

Conversation

@amieiro

@amieiro amieiro commented Sep 19, 2023

Copy link
Copy Markdown
Member

Problem

Sometimes, when a developer changes the content in an asset (CSS or JavaScript file), she forgets to update the hard-coded version in some register functions:

Solution

This PR uses the filemtime() function to this version parameter, so the version parameter will be the modification time for each asset. When a developer changes some element in a asset file, the version parameter will be update automatically.

@amieiro amieiro requested review from akirk and trymebytes September 19, 2023 17:46
@amieiro amieiro merged commit 06a146e into GlotPress:develop Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants