![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/www/wp-content/themes/dt-the7/inc/mods/compatibility/ |
<?php /** * Jetpack compatibility class. * * @package the7 * @since 1.0.0 */ // File Security Check if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists( 'Presscore_Modules_Compatibility_Jetpack', false ) ) : class Presscore_Modules_Compatibility_Jetpack { public static function execute() { if ( ! class_exists( 'Jetpack', false ) ) { return; } $jetpack_active_modules = get_option('jetpack_active_modules'); if ( $jetpack_active_modules && in_array( 'photon', $jetpack_active_modules ) && class_exists( 'Jetpack_Photon', false ) ) { // deactivate photon remove_filter( 'image_downsize', array( Jetpack_Photon::instance(), 'filter_image_downsize' ) ); } } } Presscore_Modules_Compatibility_Jetpack::execute(); endif;