Make WordPress Core


Ignore:
Timestamp:
09/20/2020 03:53:52 PM (5 years ago)
Author:
johnbillion
Message:

Docs: Inline documentation improvements for media related functions and hooks.

See #47364, #50768

File:
1 edited

Legend:

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

    r49012 r49020  
    750750 * @return array|false {
    751751 *     Array of file relative path, width, and height on success. Additionally includes absolute
    752  *     path and URL if registered size is passed to $size parameter. False on failure.
    753  *
    754  *     @type string $file   Image's path relative to uploads directory
    755  *     @type int    $width  Width of image
    756  *     @type int    $height Height of image
    757  *     @type string $path   Image's absolute filesystem path.
    758  *     @type string $url    Image's URL.
     752 *     path and URL if registered size is passed to `$size` parameter. False on failure.
     753 *
     754 *     @type string $file   Path of image relative to uploads directory.
     755 *     @type int    $width  Width of image in pixels.
     756 *     @type int    $height Height of image in pixels.
     757 *     @type string $path   Absolute filesystem path of image.
     758 *     @type string $url    URL of image.
    759759 * }
    760760 */
     
    11541154 * @access private
    11551155 *
    1156  * @param string $size_name  Image size. Accepts any valid image size name ('thumbnail', 'medium', etc.).
     1156 * @param string $size_name  Image size. Accepts any registered image size name.
    11571157 * @param array  $image_meta The image meta data.
    1158  * @return array|bool The image meta data as returned by `wp_get_attachment_metadata()`.
     1158 * @return array|false {
     1159 *     Array of width and height or false if the size isn't present in the meta data.
     1160 *
     1161 *     @type int $0 Image width.
     1162 *     @type int $1 Image height.
     1163 * }
    11591164 */
    11601165function _wp_get_image_size_from_meta( $size_name, $image_meta ) {
Note: See TracChangeset for help on using the changeset viewer.