Make WordPress Core


Ignore:
Timestamp:
12/19/2018 07:25:21 AM (4 years ago)
Author:
DrewAPicture
Message:

Docs: Ensure the optional $width and $height parameters are documented as such with defaults in the add_image_size() DocBlock.

Props andrewza.
Fixes #45203.

File:
1 edited

Legend:

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

    r43633 r44329  
    267267 *
    268268 * @param string     $name   Image size identifier.
    269  * @param int        $width  Image width in pixels.
    270  * @param int        $height Image height in pixels.
     269 * @param int        $width  Optional. Image width in pixels. Default 0.
     270 * @param int        $height Optional. Image height in pixels. Default 0.
    271271 * @param bool|array $crop   Optional. Whether to crop images to specified width and height or resize.
    272272 *                           An array can specify positioning of the crop area. Default false.
Note: See TracChangeset for help on using the changeset viewer.