X7ROOT File Manager
Current Path:
/home/notabjze/digitalcontentmentors.com/wp-content/plugins/jetpack
home
/
notabjze
/
digitalcontentmentors.com
/
wp-content
/
plugins
/
jetpack
/
ðŸ“
..
ðŸ“
3rd-party
📄
CHANGELOG.md
(715.22 KB)
📄
LICENSE.txt
(17.98 KB)
📄
SECURITY.md
(2.45 KB)
ðŸ“
_inc
📄
class-jetpack-connection-status.php
(728 B)
📄
class-jetpack-gallery-settings.php
(3.38 KB)
📄
class-jetpack-newsletter-dashboard-widget.php
(389 B)
📄
class-jetpack-pre-connection-jitms.php
(2.34 KB)
📄
class-jetpack-stats-dashboard-widget.php
(7.47 KB)
📄
class-jetpack-xmlrpc-methods.php
(7.39 KB)
📄
class.frame-nonce-preview.php
(3.22 KB)
📄
class.jetpack-admin.php
(18.49 KB)
📄
class.jetpack-autoupdate.php
(9.74 KB)
📄
class.jetpack-cli.php
(71.4 KB)
📄
class.jetpack-client-server.php
(2.62 KB)
📄
class.jetpack-gutenberg.php
(44.66 KB)
📄
class.jetpack-heartbeat.php
(4.55 KB)
📄
class.jetpack-modules-list-table.php
(14.79 KB)
📄
class.jetpack-network-sites-list-table.php
(5.98 KB)
📄
class.jetpack-network.php
(21.07 KB)
📄
class.jetpack-plan.php
(4.09 KB)
📄
class.jetpack-post-images.php
(36.73 KB)
📄
class.jetpack-twitter-cards.php
(12.92 KB)
📄
class.jetpack-user-agent.php
(25.3 KB)
📄
class.jetpack.php
(203.04 KB)
📄
class.json-api-endpoints.php
(90.79 KB)
📄
class.json-api.php
(37.32 KB)
📄
class.photon.php
(1.74 KB)
📄
composer.json
(4.08 KB)
ðŸ“
css
📄
enhanced-open-graph.php
(4.39 KB)
ðŸ“
extensions
📄
functions.compat.php
(4.31 KB)
📄
functions.cookies.php
(2.04 KB)
📄
functions.global.php
(15.38 KB)
📄
functions.is-mobile.php
(2.47 KB)
📄
functions.opengraph.php
(21.38 KB)
📄
functions.photon.php
(3.04 KB)
ðŸ“
images
📄
jetpack.php
(8.57 KB)
ðŸ“
jetpack_vendor
📄
json-api-config.php
(338 B)
ðŸ“
json-endpoints
📄
json-endpoints.php
(6.92 KB)
📄
load-jetpack.php
(3.1 KB)
📄
locales.php
(324 B)
ðŸ“
modules
📄
readme.txt
(32.74 KB)
ðŸ“
sal
ðŸ“
src
📄
unauth-file-upload.php
(5.18 KB)
📄
uninstall.php
(1.6 KB)
ðŸ“
vendor
ðŸ“
views
📄
wpml-config.xml
(1.26 KB)
Editing: class.jetpack-client-server.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName /** * Client = Plugin * Client Server = API Methods the Plugin must respond to * * @package automattic/jetpack */ /** * Client = Plugin * Client Server = API Methods the Plugin must respond to */ class Jetpack_Client_Server { /** * Whether the class has been initialized. * * @var bool */ private static $did_init = false; /** * Initialize the hooks, but only once. * * @return void */ public static function init() { if ( static::$did_init ) { return; } add_filter( 'jetpack_rest_connection_check_response', array( static::class, 'connection_check' ) ); static::$did_init = true; } /** * 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(); } /** * Deactivate a plugin. * * @param string $probable_file Expected plugin file. * @param string $probable_title Expected plugin title. * @return int 1 if a plugin was deactivated, 0 if not. */ 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; } /** * Filters the result of test_connection REST method * * @return string The current Jetpack version number */ public static function connection_check() { return JETPACK__VERSION; } }
Upload File
Create Folder