Make WordPress Core

Opened 2 weeks ago

#48489 new defect (bug)

Big image size threshold should take into account registered image sizes.

Reported by: johnbillion Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 5.3
Component: Media Keywords: dev-feedback
Focuses: performance Cc:
PR Number:


The "big image" upper size threshold is set to 2560. If an image size is registered that has a width or height larger than this, then the image will be unexpectedly cropped to 2560.

The value that gets passed through to the big_image_size_threshold filter should be set to the maximum value of either 2560 or the largest width or height from all registered image sizes.

Change History (0)

Note: See TracTickets for help on using tickets.