Make WordPress Core

Changeset 56122

Timestamp:
07/01/2023 11:08:43 PM (13 months ago)
Author:
audrasjb
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media.php

    r56112 r56122  
    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   .
    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   .
    756756 *     @type string $url    URL of image.
    757757 * }
Note: See TracChangeset for help on using the changeset viewer.