Server : Apache System : Linux ls31.server.ly 3.10.0-962.3.2.lve1.5.68.el7.x86_64 #1 SMP Wed Apr 6 11:12:23 UTC 2022 x86_64 User : medchoco ( 2906) PHP Version : 8.3.16 Disable Function : mail Directory : /home/medchoco/www/wp-content/plugins/jetpack-boost-git/app/modules/ |
Upload File : |
<?php namespace Automattic\Jetpack_Boost\Modules; use Automattic\Jetpack_Boost\Contracts\Optimization; use Automattic\Jetpack_Boost\Contracts\Pluggable; use Automattic\Jetpack_Boost\Lib\Status; class Module { /** * @var Status */ private $status; /** * @var Pluggable */ public $feature; public function __construct( Pluggable $feature ) { $this->feature = $feature; $this->status = new Status( $feature::get_slug() ); } public function is_enabled() { return $this->status->is_enabled(); } /** * Check if the module is active and ready to serve optimized output. */ public function is_optimizing() { if ( $this->feature instanceof Optimization && $this->is_enabled() && $this->feature->is_ready() ) { return true; } } }