HEX
Server: Apache
System: Linux server11 5.10.0-33-amd64 #1 SMP Debian 5.10.226-1 (2024-10-03) x86_64
User: web78 (5081)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/clients/client1/web78/web/wp-content/plugins/jetpack/class.photon.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
/**
 * Class for photon functionality.
 *
 * @package automattic/jetpack
 * @deprecated 12.2 Use Automattic\Jetpack\Image_CDN\Image_CDN instead.
 */

use Automattic\Jetpack\Image_CDN\Image_CDN;

/**
 * Class Jetpack_Photon
 *
 * @deprecated 12.2 Use Automattic\Jetpack\Image_CDN\Image_CDN instead.
 */
class Jetpack_Photon {

	/**
	 * Forward all method calls to the Image_CDN class.
	 *
	 * @param string $name The name of the method.
	 * @param array  $arguments The arguments to pass to the method.
	 *
	 * @throws Exception If the method is not found.
	 */
	public function __call( $name, $arguments ) {
		if ( method_exists( Image_CDN::class, $name ) ) {
			_deprecated_function( __CLASS__ . '::' . esc_html( $name ), 'jetpack-12.2', 'Automattic\Jetpack\Image_CDN\Image_CDN::' . esc_html( $name ) );
			return Image_CDN::instance()->$name( ...$arguments );
		} else {
			// Handle cases where the method is not found
			throw new Exception( sprintf( 'Undefined method: %s', esc_html( $name ) ) );
		}
	}

	/**
	 * Forward all static method calls to the Image_CDN class.
	 *
	 * @param string $name The name of the method.
	 * @param array  $arguments The arguments to pass to the method.
	 *
	 * @throws Exception If the method is not found.
	 */
	public static function __callStatic( $name, $arguments ) {
		if ( method_exists( Image_CDN::class, $name ) ) {
			_deprecated_function( __CLASS__ . '::' . esc_html( $name ), 'jetpack-12.2', 'Automattic\Jetpack\Image_CDN\Image_CDN::' . esc_html( $name ) );
			return Image_CDN::$name( ...$arguments );
		} else {
			// Handle cases where the method is not found
			throw new Exception( sprintf( 'Undefined static method: %s', esc_html( $name ) ) );
		}
	}
}