Docs: Adjust documentation for the `$size` parameter in `the_post_thumbnail_url()` to clarify the required order of width and height values when passing an array.

Fixes #34257. Whew!

Built from https://develop.svn.wordpress.org/trunk@35076


git-svn-id: http://core.svn.wordpress.org/trunk@35041 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2015-10-12 17:00:26 +00:00
parent 5e67b71443
commit bc631019d0
2 changed files with 4 additions and 3 deletions

View File

@ -200,8 +200,9 @@ function get_the_post_thumbnail_url( $post = null, $size = 'post-thumbnail' ) {
* *
* @since 4.4.0 * @since 4.4.0
* *
* @param string|array $size Optional. Registered image size to retrieve the source for or a flat * @param string|array $size Optional. Image size to use. Accepts any valid image size,
* array of height and width dimensions. Default 'post-thumbnail'. * or an array of width and height values in pixels (in that order).
* Default 'post-thumbnail'.
*/ */
function the_post_thumbnail_url( $size = 'post-thumbnail' ) { function the_post_thumbnail_url( $size = 'post-thumbnail' ) {
$url = get_the_post_thumbnail_url( null, $size ); $url = get_the_post_thumbnail_url( null, $size );

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.4-alpha-35075'; $wp_version = '4.4-alpha-35076';
/** /**
* 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.