has_image_size()'s parameter should be required. see [27139], see #26951.
Built from https://develop.svn.wordpress.org/trunk@27140 git-svn-id: http://core.svn.wordpress.org/trunk@27007 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
127907a85b
commit
65f4497766
|
@ -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