Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#59745 closed defect (bug) (fixed)

Docblock update for `wp_calculate_image_sizes` hook

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

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
3 years ago

  • Milestone Awaiting Review6.5

#3 @SergeyBiryukov
3 years ago

  • Owner set to SergeyBiryukov
  • Resolutionfixed
  • Status newclosed

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:


3 years ago
#4

Thanks for the PR! Merged in r57042.

Note: See TracTickets for help on using tickets.