Docs: Adjust documentation for the `$size` parameter in `get_image_send_to_editor()` to clarify the required order of width and height values when passing an array.

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

See #34257.


git-svn-id: https://develop.svn.wordpress.org/trunk@35055 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Drew Jaynes 2015-10-12 16:07:25 +00:00
parent 0cf4a5e121
commit 4d967258f2
1 changed files with 2 additions and 1 deletions

View File

@ -112,7 +112,8 @@ function the_media_upload_tabs() {
* @param string $align image css alignment property
* @param string $url image src url
* @param string $rel image rel attribute
* @param string $size image size (thumbnail, medium, large, full or added with add_image_size() )
* @param string|array $size Optional. Image size. Accepts any valid image size, or an array of width
* and height values in pixels (in that order).
* @return string the html to insert into editor
*/
function get_image_send_to_editor( $id, $caption, $title, $align, $url='', $rel = '', $size='medium', $alt = '' ) {