From ee280cf8dd9bd55d4a12bc4f8ed161f42689d07c Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sat, 8 Feb 2014 23:52:40 +0000 Subject: [PATCH] has_image_size()'s parameter should be required. see [27139], see #26951. git-svn-id: https://develop.svn.wordpress.org/trunk@27140 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/media.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php index e89917bcce..aac3c4433f 100644 --- a/src/wp-includes/media.php +++ b/src/wp-includes/media.php @@ -204,10 +204,10 @@ function add_image_size( $name, $width = 0, $height = 0, $crop = false ) { * * @since 3.9.0 * - * @param string $name Optional. The image size to check. Default empty. + * @param string $name The image size to check. * @return bool True if the image size exists, false if not. */ -function has_image_size( $name = '' ) { +function has_image_size( $name ) { global $_wp_additional_image_sizes; return isset( $_wp_additional_image_sizes[ $name ] );