WordPress.org

Make WordPress Core

#48560 closed enhancement (worksforme)

Missing *_size_w and *_size_h options for new image sizes

Reported by: vanyukov Owned by:
Milestone: Priority: normal
Severity: minor Version:
Component: Media Keywords:
Focuses: Cc:

Description

The addition of two additional image sizes 1536x1536 and 2048x2048 in WordPress 5.3 does not add the *_size_w and *_size_h options to wp_options table. Can this be added for consistency?

Change History (2)

#1 @SergeyBiryukov
11 months ago

  • Milestone changed from Awaiting Review to 5.3.1

#2 @azaozz
11 months ago

  • Milestone 5.3.1 deleted
  • Resolution set to worksforme
  • Status changed from new to closed

This is an intended change, see https://core.trac.wordpress.org/ticket/43524#comment:25. Generally modern image handling depends on having consistent sub-sizes available. Letting the users (or themes and plugins) change these sizes permanently in not intended, hence the size "names" are also a representation of the actual sizes.

Actually was looking in removing the current settings from the options (when they are left at default values) and perhaps introducing a way for the users to add a "custom image size", although having that still doesn't make much sense. Image sources are handled automatically by the browsers, having some non-standard sources doesn't seems to improve anything there.

Note: See TracTickets for help on using tickets.