public static function get_image_sizes() {
		// Bailout early if cached image configuration is available.
		if ( self::$sizes ) {
			return self::$sizes;
		}

		/**
		 * Filters image sizes used in Timmy.
		 *
		 * @since 0.13.0
		 *
		 * @param array $sizes Image configuration array. Default array().
		 */
		$sizes = apply_filters( 'timmy/sizes', array() );

		/**
		 * Fallback for get_image_sizes() function
		 *
		 * TODO: deprecate in 1.0.0
		 */
		if ( empty( $sizes ) && function_exists( 'get_image_sizes' ) ) {
			$sizes = get_image_sizes();
		}

		// Cache sizes for next requests.
		self::$sizes = $sizes;

		return $sizes;
	}
public static function get_image_sizes() {
		// Bailout early if cached image configuration is available.
		if ( self::$sizes ) {
			return self::$sizes;
		}

		/**
		 * Filters image sizes used in Timmy.
		 *
		 * @since 0.13.0
		 *
		 * @param array $sizes Image configuration array. Default array().
		 */
		$sizes = apply_filters( 'timmy/sizes', array() );

		/**
		 * Fallback for get_image_sizes() function
		 *
		 * TODO: deprecate in 1.0.0
		 */
		if ( empty( $sizes ) && function_exists( 'get_image_sizes' ) ) {
			$sizes = get_image_sizes();
		}

		// Cache sizes for next requests.
		self::$sizes = $sizes;

		return $sizes;
	}
public static function get_image_sizes ( ) { // Bailout early if cached image configuration is available. if ( self :: $ sizes ) { return self :: $ sizes ; } /**
		 * Filters image sizes used in Timmy.
		 *
		 * @since 0.13.0
		 *
		 * @param array $sizes Image configuration array. Default array().
		 */ $ sizes = apply_filters ( 'timmy/sizes' , array ( ) ) ; /**
		 * Fallback for get_image_sizes() function
		 *
		 * TODO: deprecate in 1.0.0
		 */ if ( empty ( $ sizes ) && function_exists ( 'get_image_sizes' ) ) { $ sizes = get_image_sizes ( ) ; } // Cache sizes for next requests. self :: $ sizes = $ sizes ; return $ sizes ; }
Get image size configuration.

Try first to get image sizes from cache. If the cache is not set, try to get image sizes from the timmy/sizes
filter. And as a last resort, try to get images from the discouraged get_image_sizes() function.

@since 0.13.0
Get image size configuration .