More pedantry.

git-svn-id: https://develop.svn.wordpress.org/trunk@15990 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2010-10-27 00:33:29 +00:00
parent a484cb25a0
commit 8b0d9c5856
2 changed files with 11 additions and 11 deletions

View File

@@ -177,15 +177,15 @@ function image_downsize($id, $size = 'medium') {
/**
* Registers a new image size
*/
function add_image_size( $name, $width = 0, $height = 0, $crop = FALSE ) {
function add_image_size( $name, $width = 0, $height = 0, $crop = false ) {
global $_wp_additional_image_sizes;
$_wp_additional_image_sizes[$name] = array( 'width' => absint( $width ), 'height' => absint( $height ), 'crop' => !!$crop );
$_wp_additional_image_sizes[$name] = array( 'width' => absint( $width ), 'height' => absint( $height ), 'crop' => (bool) $crop );
}
/**
* Registers an image size for the post thumbnail
*/
function set_post_thumbnail_size( $width = 0, $height = 0, $crop = FALSE ) {
function set_post_thumbnail_size( $width = 0, $height = 0, $crop = false ) {
add_image_size( 'post-thumbnail', $width, $height, $crop );
}