Docs: Adjust documentation for the `$size` parameter in the `image_downside` hook doc to clarify the required order of width and height values when an array is passed.
See #34257. Built from https://develop.svn.wordpress.org/trunk@35035 git-svn-id: http://core.svn.wordpress.org/trunk@35000 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
45174a8996
commit
3f8aaf753a
|
@ -168,7 +168,8 @@ function image_downsize( $id, $size = 'medium' ) {
|
|||
*
|
||||
* @param bool $downsize Whether to short-circuit the image downsize. Default false.
|
||||
* @param int $id Attachment ID for image.
|
||||
* @param array|string $size Size of image, either array or string. Default 'medium'.
|
||||
* @param array|string $size Size of image. Image size or array of width and height values (in that order).
|
||||
* Default 'medium'.
|
||||
*/
|
||||
if ( $out = apply_filters( 'image_downsize', false, $id, $size ) ) {
|
||||
return $out;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-alpha-35034';
|
||||
$wp_version = '4.4-alpha-35035';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue