Make WordPress Core

Opened 10 months ago

Closed 9 months ago

Last modified 9 months ago

#59745 closed defect (bug) (fixed)

Docblock update for `wp_calculate_image_sizes` hook

Reported by: dilipbheda's profile dilipbheda Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 6.5 Priority: normal
Severity: normal Version:
Component: Media Keywords: has-patch
Focuses: docs Cc:

Description

The docblock for the wp_calculate_image_sizes function has 2 errors in it. Both $image_src and $image_meta can accept nulls as well. This updates the docs for it.

Change History (4)

#2 @SergeyBiryukov
9 months ago

  • Milestone changed from Awaiting Review to 6.5

#3 @SergeyBiryukov
9 months ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 57042:

Docs: Correct the type for optional parameters in a few media functions.

This affects the $image_src and/or $image_meta parameters in:

  • wp_get_attachment_image_srcset()
  • wp_get_attachment_image_sizes()
  • wp_calculate_image_sizes()

Follow-up to [35412], [35419], [35481], [35498], [35569], [35672].

Props dilipbheda.
Fixes #59745.

@SergeyBiryukov commented on PR #5580:


9 months ago
#4

Thanks for the PR! Merged in r57042.

Note: See TracTickets for help on using tickets.