wp_oembed_get() returns false on failure. Props SergeyBiryukov. Fixes #20355.

git-svn-id: http://svn.automattic.com/wordpress/trunk@20562 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
duck_ 2012-04-22 11:19:56 +00:00
parent 7924ddb001
commit 3fdd4ee29f
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' );