Ticket #30511: 30511.patch
File 30511.patch, 1.1 KB (added by , 10 years ago) |
---|
-
src/wp-includes/media.php
219 219 * @param int $height Image height in pixels. 220 220 * @param bool|array $crop Optional. Whether to crop images to specified height and width or resize. 221 221 * 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.223 222 */ 224 223 function add_image_size( $name, $width = 0, $height = 0, $crop = false ) { 225 224 global $_wp_additional_image_sizes; … … 274 273 * @param int $height Image height in pixels. 275 274 * @param bool|array $crop Optional. Whether to crop images to specified height and width or resize. 276 275 * 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.278 276 */ 279 277 function set_post_thumbnail_size( $width = 0, $height = 0, $crop = false ) { 280 278 add_image_size( 'post-thumbnail', $width, $height, $crop );