From 7a276ec3fb6be4b87c49aeb78b13957cb3f9b5f6 Mon Sep 17 00:00:00 2001 From: Jon Cave Date: Sun, 22 Apr 2012 11:19:56 +0000 Subject: [PATCH] wp_oembed_get() returns false on failure. Props SergeyBiryukov. Fixes #20355. git-svn-id: https://develop.svn.wordpress.org/trunk@20562 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/media.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/media.php b/wp-includes/media.php index c4370d1f9d..b0c82de951 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -1378,7 +1378,7 @@ function wp_expand_dimensions( $example_width, $example_height, $max_width, $max * * @param string $url The URL that should be embedded. * @param array $args Additional arguments and parameters. - * @return string The original URL on failure or the embed HTML on success. + * @return bool|string False on failure or the embed HTML on success. */ function wp_oembed_get( $url, $args = '' ) { require_once( ABSPATH . WPINC . '/class-oembed.php' );