Make WordPress Core

Changeset 30633


Ignore:
Timestamp:
11/30/2014 05:48:03 AM (10 years ago)
Author:
DrewAPicture
Message:

Remove return descriptions from the DocBlocks for add_image_size() and set_post_thumbnail_size() as they don't return anything.

Also document the $_wp_additional_image_sizes global, leveraged in add_image_size().

Props stevegrunwell.
Fixes #30511.

File:
1 edited

Legend:

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

    r30542 r30633  
    215215 * @since 2.9.0
    216216 *
     217 * @global array $_wp_additional_image_sizes Associative array of additional image sizes.
     218 *
    217219 * @param string     $name   Image size identifier.
    218220 * @param int        $width  Image width in pixels.
     
    220222 * @param bool|array $crop   Optional. Whether to crop images to specified height and width or resize.
    221223 *                           An array can specify positioning of the crop area. Default false.
    222  * @return bool|array False, if no image was created. Metadata array on success.
    223224 */
    224225function add_image_size( $name, $width = 0, $height = 0, $crop = false ) {
     
    269270 *
    270271 * @since 2.9.0
     272 *
    271273 * @see add_image_size() for details on cropping behavior.
    272274 *
     
    275277 * @param bool|array $crop   Optional. Whether to crop images to specified height and width or resize.
    276278 *                           An array can specify positioning of the crop area. Default false.
    277  * @return bool|array False, if no image was created. Metadata array on success.
    278279 */
    279280function set_post_thumbnail_size( $width = 0, $height = 0, $crop = false ) {
Note: See TracChangeset for help on using the changeset viewer.