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
This commit is contained in:
Jon Cave 2012-04-22 11:19:56 +00:00
parent 99d723ac19
commit 7a276ec3fb
1 changed files with 1 additions and 1 deletions

View File

@ -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' );