mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
Docs: Adjust documentation for the $size
parameter in the_post_thumbnail()
to clarify the required order of width and height values when passing an array.
See #34257. Built from https://develop.svn.wordpress.org/trunk@35067 git-svn-id: http://core.svn.wordpress.org/trunk@35032 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8544d69d35
commit
2519b20959
@ -53,8 +53,9 @@ function get_post_thumbnail_id( $post = null ) {
|
||||
*
|
||||
* @see get_the_post_thumbnail()
|
||||
*
|
||||
* @param string|array $size Optional. Registered image size to use, or flat array of height
|
||||
* and width values. 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'.
|
||||
* @param string|array $attr Optional. Query string or array of attributes. Default empty.
|
||||
*/
|
||||
function the_post_thumbnail( $size = 'post-thumbnail', $attr = '' ) {
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-alpha-35066';
|
||||
$wp_version = '4.4-alpha-35067';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
x
Reference in New Issue
Block a user