Docs: Adjust documentation for the `$size` parameter in the `image_send_to_editor` hook doc to clarify the required order of width and height values when an array is passed.

Also adds the `array` type to the parameter documentation (already supported).

See #34257.


git-svn-id: https://develop.svn.wordpress.org/trunk@35058 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Drew Jaynes 2015-10-12 16:16:35 +00:00
parent f948ce0902
commit 59db8cfe93
1 changed files with 2 additions and 1 deletions

View File

@ -141,7 +141,8 @@ function get_image_send_to_editor( $id, $caption, $title, $align, $url = '', $re
* @param string $title The image title.
* @param string $align The image alignment.
* @param string $url The image source URL.
* @param string $size The image size.
* @param string|array $size Size of image. Image size or array of width and height values
* (in that order).
* @param string $alt The image alternative, or alt, text.
*/
$html = apply_filters( 'image_send_to_editor', $html, $id, $caption, $title, $align, $url, $size, $alt );