Skip to content

Commit 7f0eb07

Browse files
committed
Docs: Fix image_get_intermediate_size() docblock.
The description of returned values in array was incorrect for `image_get_intermediate_size()`: - `$file` returns the filename of image, no path information - `$path` returns path relative to the uploads directory, not absolute Props crstauf, sccr410. Fixes #58686. See #57840. git-svn-id: https://develop.svn.wordpress.org/trunk@56122 602fd350-edb4-49c9-b593-d223f7449a82
1 parent c734f91 commit 7f0eb07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wp-includes/media.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -749,10 +749,10 @@ function wp_image_matches_ratio( $source_width, $source_height, $target_width, $
749749
* Array of file relative path, width, and height on success. Additionally includes absolute
750750
* path and URL if registered size is passed to `$size` parameter. False on failure.
751751
*
752-
* @type string $file Path of image relative to uploads directory.
752+
* @type string $file Filename of image.
753753
* @type int $width Width of image in pixels.
754754
* @type int $height Height of image in pixels.
755-
* @type string $path Absolute filesystem path of image.
755+
* @type string $path Path of image relative to uploads directory.
756756
* @type string $url URL of image.
757757
* }
758758
*/

0 commit comments

Comments
 (0)