[wp-trac] [WordPress Trac] #63652: _oembed_rest_pre_serve_request() can erroneously return a string value
WordPress Trac
noreply at wordpress.org
Wed Jul 9 18:34:05 UTC 2025
#63652: _oembed_rest_pre_serve_request() can erroneously return a string value
--------------------------------------+-----------------------------
Reporter: SergeyBiryukov | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.9
Component: Embeds | Version: 4.4
Severity: normal | Resolution: fixed
Keywords: good-first-bug has-patch | Focuses:
--------------------------------------+-----------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"60443" 60443]:
{{{
#!CommitTicketReference repository="" revision="60443"
Embeds: Correct error handling in `_oembed_rest_pre_serve_request()`.
Since the function is supposed to output a string and only return a
boolean value, this commit ensures that an error message is properly
displayed, bringing consistency with a similar fragment a few lines above.
Follow-up to [35436].
Props abcd95, oglekler, SergeyBiryukov.
Fixes #63652.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63652#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list