Make WordPress Core

Ticket #30511: 30511.patch

File 30511.patch, 1.1 KB (added by stevegrunwell, 10 years ago)

Remove the @return values for add_image_size() and set_post_thumbnail_size().

  • src/wp-includes/media.php

     
    219219 * @param int        $height Image height in pixels.
    220220 * @param bool|array $crop   Optional. Whether to crop images to specified height and width or resize.
    221221 *                           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.
    223222 */
    224223function add_image_size( $name, $width = 0, $height = 0, $crop = false ) {
    225224        global $_wp_additional_image_sizes;
     
    274273 * @param int        $height Image height in pixels.
    275274 * @param bool|array $crop   Optional. Whether to crop images to specified height and width or resize.
    276275 *                           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.
    278276 */
    279277function set_post_thumbnail_size( $width = 0, $height = 0, $crop = false ) {
    280278        add_image_size( 'post-thumbnail', $width, $height, $crop );