Skip to content

Commit 6113067

Browse files
Docs: Correct @return value for _oembed_rest_pre_serve_request().
Follow-up to [35436]. Props justlevine. See #63268. git-svn-id: https://develop.svn.wordpress.org/trunk@60401 602fd350-edb4-49c9-b593-d223f7449a82
1 parent f78bbe6 commit 6113067

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/embed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ function wp_oembed_ensure_format( $format ) {
765765
* @param WP_HTTP_Response $result Result to send to the client. Usually a `WP_REST_Response`.
766766
* @param WP_REST_Request $request Request used to generate the response.
767767
* @param WP_REST_Server $server Server instance.
768-
* @return true
768+
* @return bool True if the request was served, false otherwise.
769769
*/
770770
function _oembed_rest_pre_serve_request( $served, $result, $request, $server ) {
771771
$params = $request->get_params();

0 commit comments

Comments
 (0)