File Editor
Directories:
.. (Back)
3rd-party
_inc
css
extensions
images
jetpack_vendor
json-endpoints
modules
sal
src
vendor
views
Files:
LICENSE.txt
class-jetpack-connection-status.php
class-jetpack-gallery-settings.php
class-jetpack-pre-connection-jitms.php
class-jetpack-stats-dashboard-widget.php
class-jetpack-xmlrpc-methods.php
class.frame-nonce-preview.php
class.jetpack-admin.php
class.jetpack-affiliate.php
class.jetpack-autoupdate.php
class.jetpack-bbpress-json-api.compat.php
class.jetpack-cli.php
class.jetpack-client-server.php
class.jetpack-gutenberg.php
class.jetpack-heartbeat.php
class.jetpack-modules-list-table.php
class.jetpack-network-sites-list-table.php
class.jetpack-network.php
class.jetpack-plan.php
class.jetpack-post-images.php
class.jetpack-twitter-cards.php
class.jetpack-user-agent.php
class.jetpack.php
class.json-api-endpoints.php
class.json-api.php
class.photon.php
enhanced-open-graph.php
functions.compat.php
functions.cookies.php
functions.global.php
functions.is-mobile.php
functions.opengraph.php
functions.photon.php
jetpack.php
json-api-config.php
json-endpoints.php
load-jetpack.php
locales.php
readme.txt
uninstall.php
Create New File
Create
Edit File: 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 ) ) ); } } }
Save Changes
Rename File
Rename