diff --git a/wp-includes/embed.php b/wp-includes/embed.php index b183c33078..8861fd5a22 100644 --- a/wp-includes/embed.php +++ b/wp-includes/embed.php @@ -1100,6 +1100,10 @@ function wp_filter_pre_oembed_result( $result, $url, $args ) { /** This filter is documented in wp-includes/class-wp-oembed-controller.php */ $post_id = apply_filters( 'oembed_request_post_id', $post_id, $url ); + if ( ! $post_id ) { + return $result; + } + $width = isset( $args['width'] ) ? $args['width'] : 0; $data = get_oembed_response_data( $post_id, $width ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 6b5c2e8281..a7b657adb9 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5.3-alpha-37725'; +$wp_version = '4.5.3-alpha-37732'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.