-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#28239: resize command does not process hidden images
- added new options --skip-hidden-images - added new unit test
- Loading branch information
Showing
3 changed files
with
120 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
By setting the $skipHiddenImages flag by default to false you are breaking compatibility with previous logic;
Because the value is false, the ImageResize::getAllProductImages function is now called by default instead of ImageResize::getUsedProductImages.
Anybody that was previously using the "resizeFromThemes" function should now be setting the flag to "true" to keep the same logic that they had before.