Docs: Correctly notate that the default `$width` and `$height` embed dimensions are passed to the `embed_defaults` filter as a compacted array, and not two distinct parameters.
Props swissspidy. Fixes #34522. Built from https://develop.svn.wordpress.org/trunk@35485 git-svn-id: http://core.svn.wordpress.org/trunk@35449 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d49160ba5b
commit
6924523366
|
@ -43,7 +43,7 @@ function wp_embed_unregister_handler( $id, $priority = 10 ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create default array of embed parameters.
|
* Creates default array of embed parameters.
|
||||||
*
|
*
|
||||||
* The width defaults to the content width as specified by the theme. If the
|
* The width defaults to the content width as specified by the theme. If the
|
||||||
* theme does not specify a content width, then 500px is used.
|
* theme does not specify a content width, then 500px is used.
|
||||||
|
@ -74,9 +74,9 @@ function wp_embed_defaults( $url = '' ) {
|
||||||
*
|
*
|
||||||
* @since 2.9.0
|
* @since 2.9.0
|
||||||
*
|
*
|
||||||
* @param int $width Width of the embed in pixels.
|
* @param array $size An array of embed width and height values
|
||||||
* @param int $height Height of the embed in pixels.
|
* in pixels (in that order).
|
||||||
* @param string $url The URL that should be embedded.
|
* @param string $url The URL that should be embedded.
|
||||||
*/
|
*/
|
||||||
return apply_filters( 'embed_defaults', compact( 'width', 'height' ), $url );
|
return apply_filters( 'embed_defaults', compact( 'width', 'height' ), $url );
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-beta2-35484';
|
$wp_version = '4.4-beta2-35485';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue