mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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:
parent
7924ddb001
commit
3fdd4ee29f
@ -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' );
|
||||
|
Loading…
Reference in New Issue
Block a user