Docs: Upgrade more parameters in docblocks to used typed array notation.

See #51800, #41756


git-svn-id: https://develop.svn.wordpress.org/trunk@49693 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2020-11-24 21:25:46 +00:00
parent f2c9d2851c
commit c8f7440c6a
18 changed files with 89 additions and 88 deletions
+2 -2
View File
@@ -215,7 +215,7 @@ function get_the_post_thumbnail( $post = null, $size = 'post-thumbnail', $attr =
* @since 4.4.0
*
* @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`.
* @param string|array $size Optional. Registered image size to retrieve the source for or a flat
* @param string|int[] $size Optional. Registered image size to retrieve the source for or a flat
* array of height and width dimensions. Default 'post-thumbnail'.
* @return string|false Post thumbnail URL or false if no URL is available.
*/
@@ -234,7 +234,7 @@ function get_the_post_thumbnail_url( $post = null, $size = 'post-thumbnail' ) {
*
* @since 4.4.0
*
* @param string|array $size Optional. Image size to use. Accepts any valid image size,
* @param string|int[] $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'.
*/