public static function get_image_size( $size ) {
		// Check for a directly passed image configuration array.
		if ( is_array( $size ) ) {
			return $size;
		}

		$sizes = self::get_image_sizes();

		// Return found image size.
		if ( isset( $sizes[ $size ] ) ) {
			return $sizes[ $size ];
		}

		self::notice( "Image size \"{$size}\" does not exist in your image configuration." );

		return false;
	}
public static function get_image_size( $size ) {
		// Check for a directly passed image configuration array.
		if ( is_array( $size ) ) {
			return $size;
		}

		$sizes = self::get_image_sizes();

		// Return found image size.
		if ( isset( $sizes[ $size ] ) ) {
			return $sizes[ $size ];
		}

		self::notice( "Image size \"{$size}\" does not exist in your image configuration." );

		return false;
	}
public static function get_image_size ( $ size ) { // Check for a directly passed image configuration array. if ( is_array ( $ size ) ) { return $ size ; } $ sizes = self :: get_image_sizes ( ) ; // Return found image size. if ( isset ( $ sizes [ $ size ] ) ) { return $ sizes [ $ size ] ; } self :: notice ( "Image size \"{$size}\" does not exist in your image configuration." ) ; return false ; }
Get an image size from image config.

@since 0.11.0

@param array|string $size Image size configuration array or image size key.

@return array|bool Image size configuration array.
Get an image size from image config .