From 64a79eeffa5ab1310727d8ad501b7c4e8c748b2d Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 26 Oct 2015 16:17:25 +0000 Subject: [PATCH] Docs: After [34453], correct inline comments in `wp_get_attachment_image_sizes()`. Props jaspermdegroot. Fixes #34453. Built from https://develop.svn.wordpress.org/trunk@35401 git-svn-id: http://core.svn.wordpress.org/trunk@35365 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/media.php | 6 +++--- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/media.php b/wp-includes/media.php index 4f43e59139..50d59a1de0 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -1043,10 +1043,10 @@ function wp_get_attachment_image_srcset( $attachment_id, $size = 'medium' ) { * @return string|bool A valid source size value for use in a 'sizes' attribute or false. */ function wp_get_attachment_image_sizes( $attachment_id, $size = 'medium', $width = null ) { - // Try to get the image width from $args parameter. + // Try to get the image width from the $width parameter. if ( is_numeric( $width ) ) { $img_width = (int) $width; - // Next, use see if a width value was passed in the $size parameter. + // Next, see if a width value was passed in the $size parameter. } elseif ( is_array( $size ) ) { $img_width = $size[0]; // Finally, use the $size name to return the width of the image. @@ -1055,7 +1055,7 @@ function wp_get_attachment_image_sizes( $attachment_id, $size = 'medium', $width $img_width = $image ? $image['width'] : false; } - // Bail early if $image_width isn't set. + // Bail early if $img_width isn't set. if ( ! $img_width ) { return false; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 556f147b6d..035670ff47 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-beta1-35400'; +$wp_version = '4.4-beta1-35401'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.