Changeset 15990 for trunk/wp-includes/media.php
- Timestamp:
- 10/27/2010 12:33:29 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/media.php
r15689 r15990 178 178 * Registers a new image size 179 179 */ 180 function add_image_size( $name, $width = 0, $height = 0, $crop = FALSE) {180 function add_image_size( $name, $width = 0, $height = 0, $crop = false ) { 181 181 global $_wp_additional_image_sizes; 182 $_wp_additional_image_sizes[$name] = array( 'width' => absint( $width ), 'height' => absint( $height ), 'crop' => !!$crop );182 $_wp_additional_image_sizes[$name] = array( 'width' => absint( $width ), 'height' => absint( $height ), 'crop' => (bool) $crop ); 183 183 } 184 184 … … 186 186 * Registers an image size for the post thumbnail 187 187 */ 188 function set_post_thumbnail_size( $width = 0, $height = 0, $crop = FALSE) {188 function set_post_thumbnail_size( $width = 0, $height = 0, $crop = false ) { 189 189 add_image_size( 'post-thumbnail', $width, $height, $crop ); 190 190 }
Note: See TracChangeset
for help on using the changeset viewer.