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
This commit is contained in:
parent
c0a7cd58e7
commit
ee280cf8dd
|
@ -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 ] );
|
||||
|
|
Loading…
Reference in New Issue