[wp-trac] [WordPress Trac] #62018: HTML API: Satisfy return types in new methods
WordPress Trac
noreply at wordpress.org
Mon Sep 9 17:25:06 UTC 2024
#62018: HTML API: Satisfy return types in new methods
--------------------------+-----------------------------
Reporter: dlh | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: HTML API | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
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.
[https://wordpress.slack.com/archives/C05NFB818PQ/p1725413995622659 See
discussion in the #core-html-api Slack channel].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62018>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list