WordPress.org

Make WordPress Core

Opened 2 weeks ago

Last modified 2 weeks ago

#48003 new defect (bug)

Function wp_prepare_attachment_for_js() missing other sizes

Reported by: kkatusic Owned by:
Milestone: Awaiting Review Priority: normal
Severity: minor Version: 5.2.3
Component: Media Keywords: needs-patch
Focuses: Cc:

Description (last modified by SergeyBiryukov)

Function wp_prepare_attachment_for_js() missing custom defined sizes attributes of images in returned array. After last up to WordPress on version 5.2.3. it missed custom sizes.

I tried on three different websites and it is same, custom sizes have been missing.

Change History (2)

#1 @kkatusic
2 weeks ago

Sorry I copy-pasted wrong function it is: wp_prepare_attachment_for_js()

#2 @SergeyBiryukov
2 weeks ago

  • Description modified (diff)
  • Summary changed from Function get_intermediate_image_sizes() missing other sizes to Function wp_prepare_attachment_for_js() missing other sizes
Note: See TracTickets for help on using tickets.