PATH:
home
/
lab2454c
/
mact34.com
/
wp-content
/
plugins
/
jetpack
<?php use Automattic\Jetpack\Connection\Webhooks; /** * Client = Plugin * Client Server = API Methods the Plugin must respond to */ class Jetpack_Client_Server { /** * Handle the client authorization error. * * @param WP_Error $error The error object. */ public static function client_authorize_error( $error ) { if ( $error instanceof WP_Error ) { Jetpack::state( 'error', $error->get_error_code() ); } } /** * The user is already authorized, we set the Jetpack state and adjust the redirect URL. * * @return string */ public static function client_authorize_already_authorized_url() { Jetpack::state( 'message', 'already_authorized' ); return Jetpack::admin_url(); } /** * The authorization processing has started. */ public static function client_authorize_processing() { Jetpack::log( 'authorize' ); } /** * The authorization has completed (successfully or not), and the redirect URL is empty. * We set the Jetpack Dashboard as the default URL. * * @return string */ public static function client_authorize_fallback_url() { return Jetpack::admin_url(); } /** * Authorization handler. * * @deprecated since Jetpack 9.5.0 * @see Webhooks::handle_authorize() */ public function client_authorize() { _deprecated_function( __METHOD__, 'jetpack-9.5.0', 'Automattic\\Jetpack\\Connection\\Webhooks::handle_authorize' ); ( new Webhooks() )->handle_authorize(); } public static function deactivate_plugin( $probable_file, $probable_title ) { include_once ABSPATH . 'wp-admin/includes/plugin.php'; if ( is_plugin_active( $probable_file ) ) { deactivate_plugins( $probable_file ); return 1; } else { // If the plugin is not in the usual place, try looking through all active plugins. $active_plugins = Jetpack::get_active_plugins(); foreach ( $active_plugins as $plugin ) { $data = get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin ); if ( $data['Name'] == $probable_title ) { deactivate_plugins( $plugin ); return 1; } } } return 0; } /** * @deprecated since Jetpack 9.5.0 * @see Jetpack::init() */ public function get_jetpack() { _deprecated_function( __METHOD__, 'jetpack-9.5.0', 'Jetpack::init' ); return Jetpack::init(); } /** * No longer used. * * @deprecated since Jetpack 9.5.0 */ public function do_exit() { _deprecated_function( __METHOD__, 'jetpack-9.5.0' ); exit; } }
[+]
_inc
[-] uninstall.php
[edit]
[-] jest.config.js
[edit]
[-] composer.json
[edit]
[-] class-jetpack-xmlrpc-methods.php
[edit]
[-] class-jetpack-connection-status.php
[edit]
[-] class.jetpack-affiliate.php
[edit]
[-] class.jetpack-ixr-client.php
[edit]
[-] class.json-api.php
[edit]
[-] class.jetpack-post-images.php
[edit]
[-] wpml-config.xml
[edit]
[-] class-jetpack-pre-connection-jitms.php
[edit]
[+]
..
[-] class.jetpack-network.php
[edit]
[-] LICENSE.txt
[edit]
[-] class.jetpack-twitter-cards.php
[edit]
[-] functions.global.php
[edit]
[-] functions.compat.php
[edit]
[-] class.jetpack-network-sites-list-table.php
[edit]
[-] functions.gallery.php
[edit]
[+]
modules
[-] class.jetpack-cli.php
[edit]
[-] class-jetpack-recommendations-banner.php
[edit]
[-] class.jetpack-idc.php
[edit]
[-] functions.photon.php
[edit]
[-] functions.cookies.php
[edit]
[+]
vendor
[-] require-lib.php
[edit]
[-] jetpack.php
[edit]
[-] SECURITY.md
[edit]
[-] class.jetpack-modules-list-table.php
[edit]
[-] class.jetpack-data.php
[edit]
[-] class.jetpack-connection-banner.php
[edit]
[+]
css
[-] readme.txt
[edit]
[-] class-jetpack-wizard-banner.php
[edit]
[-] json-api-config.php
[edit]
[+]
extensions
[-] load-jetpack.php
[edit]
[-] json-endpoints.php
[edit]
[-] class.jetpack-bbpress-json-api.compat.php
[edit]
[-] class.jetpack-client-server.php
[edit]
[-] locales.php
[edit]
[-] class.jetpack-gutenberg.php
[edit]
[-] functions.opengraph.php
[edit]
[+]
views
[-] class.jetpack-user-agent.php
[edit]
[-] class.photon.php
[edit]
[+]
3rd-party
[+]
images
[-] class.jetpack-plan.php
[edit]
[+]
json-endpoints
[-] class.jetpack-autoupdate.php
[edit]
[-] class.frame-nonce-preview.php
[edit]
[+]
sal
[-] class.jetpack.php
[edit]
[-] class.jetpack-admin.php
[edit]
[+]
src
[-] CHANGELOG.md
[edit]
[-] class.jetpack-heartbeat.php
[edit]
[-] class.json-api-endpoints.php
[edit]