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-connection-widget.php
class-jetpack-gallery-settings.php
class-jetpack-pre-connection-jitms.php
class-jetpack-recommendations-banner.php
class-jetpack-stats-dashboard-widget.php
class-jetpack-wizard-banner.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-boost-modules.php
class.jetpack-cli.php
class.jetpack-client-server.php
class.jetpack-connection-banner.php
class.jetpack-data.php
class.jetpack-gutenberg.php
class.jetpack-heartbeat.php
class.jetpack-idc.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.jetpack-boost-modules.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName /** * Jetpack Boost Active Modules * * Since the speed scores API will only be used in the Jetpack plugin if Jetpack Boost is uninstalled * all we need is to pass along this placeholder class for the modules that essentially tells the API * the user doesn't have any Boost modules active. * * @package automattic/jetpack */ /** * Jetpack Boost Modules */ class Jetpack_Boost_Modules { /** * Holds the singleton instance of the class * * @var Jetpack_Boost_Modules */ private static $instance = false; /** * Singleton * * @static * @return Jetpack_Boost_Modules */ public static function init() { if ( ! self::$instance ) { self::$instance = new Jetpack_Boost_Modules(); } return self::$instance; } /** * Returns status of all active boost modules * * @return array - An empty array. The user will never have active modules when using the Boost Score API */ public function get_status() { return array(); } /** * Returns whether or not the user has active modules * * @return false - The user will never have active modules when using the Boost Score API */ public function have_enabled_modules() { return false; } }
Save Changes
Rename File
Rename