Lines:
1 to 100 of 354
<?php use Automattic\Jetpack\Assets; use Automattic\Jetpack\Assets\Logo as Jetpack_Logo; use Automattic\Jetpack\Config; use Automattic\Jetpack\Connection\Client; use Automattic\Jetpack\Connection\Manager as Connection_Manager; use Automattic\Jetpack\Connection\Plugin_Storage as Connection_Plugin_Storage; use Automattic\Jetpack\Connection\Rest_Authentication as Connection_Rest_Authentication; use Automattic\Jetpack\Connection\Utils as Connection_Utils; use Automattic\Jetpack\Constants; use Automattic\Jetpack\Device_Detection\User_Agent_Info; use Automattic\Jetpack\Licensing; use Automattic\Jetpack\Partner; use Automattic\Jetpack\Plugin\Tracking as Plugin_Tracking; use Automattic\Jetpack\Redirect; use Automattic\Jetpack\Roles; use Automattic\Jetpack\Status; use Automattic\Jetpack\Sync\Functions; use Automattic\Jetpack\Sync\Health; use Automattic\Jetpack\Sync\Sender; use Automattic\Jetpack\Sync\Users; use Automattic\Jetpack\Terms_Of_Service; use Automattic\Jetpack\Tracking; /* Options: jetpack_options (array) An array of options. @see Jetpack_Options::get_option_names() jetpack_register (string) Temporary verification secrets. jetpack_activated (int) 1: the plugin was activated normally 2: the plugin was activated on this site because of a network-wide activation 3: the plugin was auto-installed 4: the plugin was manually disconnected (but is still installed) jetpack_active_modules (array) Array of active module slugs. jetpack_do_activate (bool) Flag for "activating" the plugin on sites where the activation hook never fired (auto-installs) */ require_once JETPACK__PLUGIN_DIR . '_inc/lib/class.media.php'; /* class Jetpack */ /* function Jetpack::init() – Singleton */ /* function Jetpack::plugin_upgrade() – Must never be called statically */ /* function Jetpack::upgrade_on_load() – Runs upgrade routines that need to have modules loaded. */ /* function Jetpack::update_active_modules() – Saves all the currently active modules to options. */ /* function Jetpack::delete_active_modules() – Fires when a module is deactivated. */ /* function Jetpack::add_configure_hook() – Adds a hook to plugins_loaded at a priority that’s currently the earliest available. */ /* function Jetpack::__construct() – Constructor. Initializes WordPress hooks */ /* function Jetpack::configure() – Before everything else starts getting initalized, we need to initialize Jetpack using the Config object. */ /* function Jetpack::late_initialization() – Runs on plugins_loaded. Use this to add code that needs to be executed later than other initialization code. */ /* function Jetpack::setup_xmlrpc_handlers() – Sets up the XMLRPC request handlers. */ /* function Jetpack::initialize_rest_api_registration_connector() – Initialize REST API registration connector. */ /* function Jetpack::add_wpcom_to_allowed_redirect_hosts() – This is ported over from the manage module, which has been deprecated and baked in here. */ /* function Jetpack::allow_wpcom_domain() – Return $domains, with ‘wordpress.com’ appended. */ /* function Jetpack::point_edit_post_links_to_calypso() – */ /* function Jetpack::point_edit_comment_links_to_calypso() – */ /* function Jetpack::jetpack_track_last_sync_callback() – */ /* function Jetpack::jetpack_connection_banner_callback() – Filter to turn off jitm caching */ /* function Jetpack::remove_non_jetpack_xmlrpc_methods() – Removes all XML-RPC methods that are not `jetpack.*`. */ /* function Jetpack::alternate_xmlrpc() – Since a lot of hosts use a hammer approach to "protecting" WordPress sites, and just blanket block all requests to /xmlrpc.php, or apply other overly-sensitive security/firewall policies, we provide our own alternate XML RPC API endpoint which is accessible via a different URI. Most of the below is copied directly from /xmlrpc.php so that we’re replicating it as closely as possible. */ /* function Jetpack::jetpack_jitm_ajax_callback() – The callback for the JITM ajax requests. */ /* function Jetpack::push_stats() – If there are any stats that need to be pushed, but haven’t been, push them now. */ /* function Jetpack::jetpack_custom_caps() – Sets the Jetpack custom capabilities. */ /* function Jetpack::require_jetpack_authentication() – Require a Jetpack authentication. */ /* function Jetpack::register_assets() – Register assets for use in various modules and the Jetpack admin page. */ /* function Jetpack::guess_locale_from_lang() – Guess locale from language code. */ /* function Jetpack::get_locale() – Get the locale. */ /* function Jetpack::jetpack_main_network_site_option() – Return the network_site_url so that .com knows what network this site is a part of. */ /* function Jetpack::network_name() – Network Name. */ /* function Jetpack::network_allow_new_registrations() – Does the network allow new user and site registrations. */ /* function Jetpack::network_add_new_users() – Does the network allow admins to add new users. */ /* function Jetpack::network_site_upload_space() – File upload psace left per site in MB. */ /* function Jetpack::network_upload_file_types() – Network allowed file types. */ /* function Jetpack::network_max_upload_file_size() – Maximum file upload size set by the network. */ /* function Jetpack::network_enable_administration_menus() – Lets us know if a site allows admins to manage the network. */ /* function Jetpack::maybe_clear_other_linked_admins_transient() – If a user has been promoted to or demoted from admin, we need to clear the jetpack_other_linked_admins transient. */ /* function Jetpack::get_other_linked_admins() – Checks to see if there are any other users available to become primary Users must both: – Be linked to wpcom – Be an admin */ /* function Jetpack::is_main_network_option() – Return whether we are dealing with a multi network setup or not. */ /* function Jetpack::is_multisite() – Return true if we are with multi-site or multi-network false if we are dealing with single site. */ /* function Jetpack::is_multi_network() – Implemented since there is no core is multi network function Right now there is no way to tell if we which network is the dominant network on the system */