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

gpfr-global-filename-template.php: Fixed issue where {i} merge tag would increment twice as fast as it should. #700

Merged
merged 1 commit into from
Sep 21, 2023

Conversation

veryspry
Copy link
Contributor

@veryspry veryspry commented Aug 24, 2023

Context

⛑️ Ticket(s): https://secure.helpscout.net/conversation/2330760345/53504?folderId=6987275

Summary

Calling get_template_value() more than once per file can be problematic as it can cause the {i} merge tag to be incremented twice as fast as it should be.

This change leverages a new filter, gpfr_filename_template, that allows the filename template to be modified before get_template_value() is called internally within GPFR.

🚨 Relies on the changes in this GPNF pull request: https://github.com/gravitywiz/gp-file-renamer/pull/13

…g would increment twice as fast as it should.
@veryspry veryspry changed the title gpfr-global-filename-template.php: Fix issue where {i} merge tag would increment twice as fast as it should. gpfr-global-filename-template.php: Fixed issue where {i} merge tag would increment twice as fast as it should. Sep 21, 2023
@veryspry veryspry merged commit b0d5af7 into master Sep 21, 2023
3 checks passed
@veryspry veryspry deleted the matt/gpfr-fix branch September 21, 2023 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants