Make WordPress Core


Ignore:
Timestamp:
10/27/2010 12:33:29 AM (13 years ago)
Author:
nacin
Message:

More pedantry.

File:
1 edited

Legend:

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

    r15689 r15990  
    178178 * Registers a new image size
    179179 */
    180 function add_image_size( $name, $width = 0, $height = 0, $crop = FALSE ) {
     180function add_image_size( $name, $width = 0, $height = 0, $crop = false ) {
    181181    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 );
    183183}
    184184
     
    186186 * Registers an image size for the post thumbnail
    187187 */
    188 function set_post_thumbnail_size( $width = 0, $height = 0, $crop = FALSE ) {
     188function set_post_thumbnail_size( $width = 0, $height = 0, $crop = false ) {
    189189    add_image_size( 'post-thumbnail', $width, $height, $crop );
    190190}
Note: See TracChangeset for help on using the changeset viewer.