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

Fixes #833 Delete all next-gen versions on restore original image #835

Merged
merged 29 commits into from
Mar 15, 2024
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
f3c600a
Closes #763: AVIF support: UI (#769)
Miraeld Jan 3, 2024
fc76130
Closes #772: Changed webp to avif and slight modification to UI (#780)
Khadreal Jan 15, 2024
ec0bf15
Closes #766: Add avif format to picture element (#781)
jeawhanlee Jan 16, 2024
188264f
Add league/container, event-manager to composer and mozart (#782)
Khadreal Jan 18, 2024
1dc3a71
Add AVIF Rewrite rules (#774)
Miraeld Jan 18, 2024
0e8a3b1
AVIF settings update (#775)
Miraeld Jan 19, 2024
0a8f547
Add filter for nextgen image format #777 (#783)
Khadreal Jan 19, 2024
994c4eb
Feature/778 avif bulk generate (#784)
Khadreal Jan 23, 2024
de6dc98
Change methods name (#785)
Khadreal Jan 25, 2024
b396de2
Update WP background processing and Action Scheduler (#786)
remyperona Jan 29, 2024
19f6e4f
Fixes #791 Update texts related to WebP and Next-Gen (#800)
remyperona Feb 9, 2024
5d431cf
Merge branch 'develop' into feature/avif
remyperona Feb 14, 2024
fc23358
Fixes Container, Event Manager, CLI & Rewrite rules for AVIF (#797)
remyperona Feb 19, 2024
29f4bfb
Fixes #789 Fix error displayed when using generate missing next-gen v…
remyperona Feb 22, 2024
6c286ea
Fixes #788 Generate next-gen formats on image upload (#809)
remyperona Feb 22, 2024
2d98bbc
Closes #796: Auto generation of AVIF on save (#806)
Miraeld Feb 22, 2024
4502844
Closes #790, #792, #803: Delete/Generate next-gen in media not workin…
jeawhanlee Feb 22, 2024
6a64753
coding standards fixes
remyperona Feb 22, 2024
770c25f
update some occurences of webp to next-gen
remyperona Feb 22, 2024
0103815
update text
remyperona Feb 24, 2024
a62dc23
update minified file
remyperona Feb 26, 2024
e357b67
Fixes #815 Skip image deletion if returned path value is false (#819)
remyperona Feb 27, 2024
324c4fa
Closes #796: Auto AVIF Convertion on settings save (#811)
Miraeld Feb 28, 2024
4677279
Closes #822: The filter to enable webP along with AVIF is not working…
jeawhanlee Feb 28, 2024
85edeba
Fixes #826 Only generate missing next-gen when enabling AVIF option (…
remyperona Feb 29, 2024
f673ed2
Apply nginx rules for next gen images (#824)
wordpressfan Mar 1, 2024
6a7f2f3
Fix data for optimized medias without next-gen versions (#820)
remyperona Mar 1, 2024
bc12cd2
delete all next-gen on restore
remyperona Mar 1, 2024
482b19d
Merge branch 'develop' into fix833-restore
remyperona Mar 9, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions classes/Optimization/Process/AbstractProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ public function restore() {
$media->update_dimensions();

// Delete the WebP version.
$this->delete_nextgen_file( $original_path );
$this->delete_nextgen_file( $original_path, true );

// Restore the thumbnails.
$response = $this->restore_thumbnails();
Expand Down Expand Up @@ -989,7 +989,7 @@ protected function restore_thumbnails() {
* In that case we must also delete the next-gen file associated to the full size.
*/
$keep_full_next_gen = $media->get_raw_original_path() === $media->get_raw_fullsize_path();
$this->delete_nextgen_files( $keep_full_next_gen );
$this->delete_nextgen_files( $keep_full_next_gen, true );

// Generate new thumbnails.
return $media->generate_thumbnails();
Expand Down
Loading