﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	focuses
65082	WP_oEmbed()->fetch() uses wp_embed_defaults() incorrectly	sanchothefat		"In the `fetch()` method of `WP_oEmbed()` it's expecting an array with `width` and `height` keys however `wp_embed_defaults()` returns a compacted numerically indexed array.

The net result is that the provider always has `maxwidth` and `maxheight` values of 0, and embeds come out very small.

Another compounding problem is that block themes don't necessarily declare `$contentwidth` either, so the net result is small embeds that don't fill their containers.

Offending code:

{{{

	public function fetch( $provider, $url, $args = '' ) {
		$args = wp_parse_args( $args, wp_embed_defaults( $url ) );

		$provider = add_query_arg( 'maxwidth', (int) $args['width'], $provider );
		$provider = add_query_arg( 'maxheight', (int) $args['height'], $provider );

}}}"	defect (bug)	closed	normal	Awaiting Review	Embeds		normal	invalid	has-patch has-unit-tests		
