Satisfy return types in new methods) – WordPress Trac (original) (raw)

#62018 closed enhancement (fixed)

Reported by: dlh's profile Owned by: dmsnell's profile dmsnell
Milestone: 6.7 Priority: normal
Severity: normal Version: 6.7
Component: HTML API Keywords: has-patch
Focuses: Cc:

A handful of methods introduced to the HTML API for WordPress 6.7 declare return types but don't return a value in some (improbable) circumstances. The linked PR updates the new methods to return a value in even these cases to avoid generating fatal errors when the return type isn't met.

​See discussion in the #core-html-api Slack channel.

Change History (5)

Note: SeeTracTickets for help on using tickets.