Make WordPress Core

Changeset 60443


Ignore:
Timestamp:
07/09/2025 06:33:47 PM (10 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/embed.php

    r60401 r60443  
    792792    if ( ! $result ) {
    793793        status_header( 501 );
    794         return get_status_header_desc( 501 );
     794        die( get_status_header_desc( 501 ) );
    795795    }
    796796
Note: See TracChangeset for help on using the changeset viewer.