#60643 closed defect (bug) (fixed)
use strict compare in GD image save function
Reported by: | pbearne | Owned by: | pbearne |
---|---|---|---|
Milestone: | 6.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Media | Keywords: | has-patch |
Focuses: | Cc: |
Description
Change History (4)
This ticket was mentioned in PR #6187 on WordPress/wordpress-develop by @pbearne.
9 months ago
#1
- Keywords has-patch added
@SergeyBiryukov commented on PR #6187:
8 months ago
#4
Thanks for the PR! Merged in r57811.
Note: See
TracTickets for help on using
tickets.
…ided diffs, here is the appropriate commit message:
Change comparison operator to strict in mime_type checks
The operator in the mime_type checks has been switched from '==' to '===' for 'image/webp' and 'image/avif' in the class-wp-image-editor-gd.php file. This change ensures a stricter comparison, improving code reliability and reducing potential bugs.
Trac ticket: 60643