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! git-svn-id: https://develop.svn.wordpress.org/trunk@35076 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
663d71de0d
commit
2f5be3afcf
@ -200,8 +200,9 @@ function get_the_post_thumbnail_url( $post = null, $size = 'post-thumbnail' ) {
|
||||
*
|
||||
* @since 4.4.0
|
||||
*
|
||||
* @param string|array $size Optional. Registered image size to retrieve the source for or a flat
|
||||
* array of height and width dimensions. Default 'post-thumbnail'.
|
||||
* @param string|array $size Optional. Image size to use. Accepts any valid image size,
|
||||
* or an array of width and height values in pixels (in that order).
|
||||
* Default 'post-thumbnail'.
|
||||
*/
|
||||
function the_post_thumbnail_url( $size = 'post-thumbnail' ) {
|
||||
$url = get_the_post_thumbnail_url( null, $size );
|
||||
|
Loading…
Reference in New Issue
Block a user