mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-13 21:30:26 +00:00
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:
@@ -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'.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user