Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use filemtime to set the asset's version #1693

Merged
merged 1 commit into from
Sep 20, 2023

Conversation

amieiro
Copy link
Member

@amieiro amieiro commented Sep 19, 2023

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