From c12f0caefdd8e090398669953b5ccfad54ed0985 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Mon, 12 Oct 2015 16:17:24 +0000 Subject: [PATCH] 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. Built from https://develop.svn.wordpress.org/trunk@35058 git-svn-id: http://core.svn.wordpress.org/trunk@35023 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/media.php | 3 ++- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 8181ba5ad0..176ab986ac 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -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 ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 28433afcb3..6d12c9b38f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-35057'; +$wp_version = '4.4-alpha-35058'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.