X7ROOT File Manager
Current Path:
/home/notabjze/starbudzca.com/wp-content/plugins/jetpack
home
/
notabjze
/
starbudzca.com
/
wp-content
/
plugins
/
jetpack
/
ðŸ“
..
ðŸ“
3rd-party
📄
CHANGELOG.md
(596.89 KB)
📄
LICENSE.txt
(17.98 KB)
📄
SECURITY.md
(2.45 KB)
ðŸ“
_inc
📄
class-jetpack-connection-status.php
(728 B)
📄
class-jetpack-connection-widget.php
(3.29 KB)
📄
class-jetpack-gallery-settings.php
(3.38 KB)
📄
class-jetpack-pre-connection-jitms.php
(5.77 KB)
📄
class-jetpack-recommendations-banner.php
(9.1 KB)
📄
class-jetpack-stats-dashboard-widget.php
(7.77 KB)
📄
class-jetpack-wizard-banner.php
(214 B)
📄
class-jetpack-xmlrpc-methods.php
(8.33 KB)
📄
class.frame-nonce-preview.php
(3.22 KB)
📄
class.jetpack-admin.php
(19.86 KB)
📄
class.jetpack-affiliate.php
(205 B)
📄
class.jetpack-autoupdate.php
(9.74 KB)
📄
class.jetpack-bbpress-json-api.compat.php
(220 B)
📄
class.jetpack-boost-modules.php
(1.23 KB)
📄
class.jetpack-cli.php
(71.41 KB)
📄
class.jetpack-client-server.php
(2.79 KB)
📄
class.jetpack-connection-banner.php
(13.88 KB)
📄
class.jetpack-data.php
(275 B)
📄
class.jetpack-gutenberg.php
(42.69 KB)
📄
class.jetpack-heartbeat.php
(4.55 KB)
📄
class.jetpack-idc.php
(351 B)
📄
class.jetpack-modules-list-table.php
(14.79 KB)
📄
class.jetpack-network-sites-list-table.php
(5.98 KB)
📄
class.jetpack-network.php
(21.03 KB)
📄
class.jetpack-plan.php
(4.09 KB)
📄
class.jetpack-post-images.php
(33.72 KB)
📄
class.jetpack-twitter-cards.php
(12.92 KB)
📄
class.jetpack-user-agent.php
(25.84 KB)
📄
class.jetpack.php
(224.1 KB)
📄
class.json-api-endpoints.php
(82.58 KB)
📄
class.json-api.php
(33.86 KB)
📄
class.photon.php
(1.74 KB)
📄
composer.json
(3.77 KB)
ðŸ“
css
📄
enhanced-open-graph.php
(4.35 KB)
ðŸ“
extensions
📄
functions.compat.php
(4.28 KB)
📄
functions.cookies.php
(2.04 KB)
📄
functions.global.php
(15.08 KB)
📄
functions.is-mobile.php
(2.47 KB)
📄
functions.opengraph.php
(17.72 KB)
📄
functions.photon.php
(3.04 KB)
ðŸ“
images
📄
jetpack.php
(8.23 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.24 KB)
ðŸ“
sal
ðŸ“
src
📄
uninstall.php
(1.6 KB)
ðŸ“
vendor
ðŸ“
views
📄
wpml-config.xml
(1.26 KB)
Editing: class-jetpack-pre-connection-jitms.php
<?php /** * Jetpack's Pre-Connection JITMs class. * * @package jetpack */ use Automattic\Jetpack\Partner_Coupon as Jetpack_Partner_Coupon; use Automattic\Jetpack\Redirect; /** * Jetpack's Pre-Connection JITMs. These can be displayed with the JITM package. */ class Jetpack_Pre_Connection_JITMs { /** * Returns all the pre-connection messages. * * @return array An array containing the pre-connection JITM messages. */ private function get_raw_messages() { $button_caption = __( 'Set up Jetpack', 'jetpack' ); /* Translators: placeholders are links. */ $media_description = __( 'Click on the <strong>Set up Jetpack</strong> button to agree to our <a href="%1$s" target="_blank" rel="noopener noreferrer">Terms of Service</a> and to <a href="%2$s" target="_blank" rel="noopener noreferrer">share details</a> with WordPress.com, and gain access to Site Accelerator.', 'jetpack' ); /* Translators: placeholders are links. */ $widgets_description = __( 'Click on the <strong>Set up Jetpack</strong> button to agree to our <a href="%1$s" target="_blank" rel="noopener noreferrer">Terms of Service</a> and to <a href="%2$s" target="_blank" rel="noopener noreferrer">share details</a> with WordPress.com, and gain access to great additional widgets.', 'jetpack' ); /* Translators: placeholders are links. */ $posts_description = __( 'Click on the <strong>Set up Jetpack</strong> button to agree to our <a href="%1$s" target="_blank" rel="noopener noreferrer">Terms of Service</a> and to <a href="%2$s" target="_blank" rel="noopener noreferrer">share details</a> with WordPress.com, and gain access to in-depth stats about your site.', 'jetpack' ); $messages = array( array( 'id' => 'jpsetup-upload', 'message_path' => '/wp:upload:admin_notices/', 'message' => __( 'Do you want lightning-fast images?', 'jetpack' ), 'description' => $this->generate_description_with_tos( $media_description ), 'button_caption' => $button_caption, ), array( 'id' => 'jpsetup-widgets', 'message_path' => '/wp:widgets:admin_notices/', 'message' => __( 'Looking for even more widgets?', 'jetpack' ), 'description' => $this->generate_description_with_tos( $widgets_description ), 'button_caption' => $button_caption, ), ); if ( wp_count_posts()->publish >= 5 ) { $messages[] = array( 'id' => 'jpsetup-posts', 'message_path' => '/wp:edit-post:admin_notices/', 'message' => __( 'Do you know which of these posts gets the most traffic?', 'jetpack' ), 'description' => $this->generate_description_with_tos( $posts_description ), 'button_caption' => $button_caption, ); } foreach ( $messages as $key => $message ) { /* * Add Connect URL to each message, with from including jitm id. */ $jetpack_setup_url = $this->generate_admin_url( array( 'page' => 'jetpack#/setup', 'from' => sprintf( 'pre-connection-jitm-%s', $message['id'] ), ) ); $messages[ $key ]['button_link'] = $jetpack_setup_url; } return $messages; } /** * Generate a description text with links to ToS documents. * * Those messages must mention the ToS agreement message, * but do not use the standard message defined in jetpack_render_tos_blurb. * Instead, they use their own custom messages. * * @param string $description Description string with placeholders. * * @return string */ private function generate_description_with_tos( $description ) { return sprintf( wp_kses( $description, array( 'a' => array( 'href' => array(), 'target' => array(), 'rel' => array(), ), 'strong' => true, ) ), esc_url( Redirect::get_url( 'wpcom-tos' ) ), esc_url( Redirect::get_url( 'jetpack-support-what-data-does-jetpack-sync' ) ) ); } /** * Returns partnership related pre-connection messages. * * @since 10.4 * * @return array An array containing the pre-connection JITM messages. */ private function maybe_get_raw_partnership_messages() { $partner_coupon = Jetpack_Partner_Coupon::get_coupon(); if ( ! $partner_coupon ) { return array(); } return array( array( 'id' => 'jpsetup-partner-coupon', 'message_path' => '/wp:(plugin-install|themes|update-core|upload|users|tools|options-general):admin_notices/', /* Translators: 1: Product name, 2: Partner name. */ 'message' => sprintf( esc_html__( 'Get %1$s with your %2$s account', 'jetpack' ), $partner_coupon['product']['title'], $partner_coupon['partner']['name'] ), 'description' => $partner_coupon['product']['description'], 'button_caption' => esc_html__( 'Redeem coupon', 'jetpack' ), 'button_link' => $this->generate_admin_url( array( 'page' => 'jetpack#/dashboard', 'from' => 'pre-connection-jitm--jpsetup-partner-coupon', ) ), ), ); } /** * Adds the input query arguments to the admin url. * * @param array $args The query arguments. * * @return string The admin url. */ private function generate_admin_url( $args ) { $url = add_query_arg( $args, admin_url( 'admin.php' ) ); return $url; } /** * Add the Jetpack pre-connection JITMs to the list of pre-connection JITM messages. * * @param array $pre_connection_messages An array of pre-connection JITMs. * * @return array The array of pre-connection JITMs. */ public function add_pre_connection_jitms( $pre_connection_messages ) { $jetpack_messages = array_merge( $this->get_raw_messages(), $this->maybe_get_raw_partnership_messages() ); if ( ! is_array( $pre_connection_messages ) ) { // The incoming messages aren't an array, so just return Jetpack's messages. return $jetpack_messages; } return array_merge( $pre_connection_messages, $jetpack_messages ); } }
Upload File
Create Folder