wp-rocket
wp-rocket copied to clipboard
Closes 2441: Fixed warning when temporary file can't be created
Description
Fixed a problem due to a warning happening when we are moving the temporary file to its final position. For that we added a check to verify if the file was created before moving it.
Fixes #2441
Type of change
- [ ] Bug fix (non-breaking change which fixes an issue)
Is the solution different from the one proposed during the grooming?
No.
How Has This Been Tested?
- [ ] Manual Test
Checklist:
Please delete the options that are not relevant.
- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream modules