X7ROOT File Manager
Current Path:
/home/notabjze/crypfinite.com/wp-content/plugins/jetpack
home
/
notabjze
/
crypfinite.com
/
wp-content
/
plugins
/
jetpack
/
ðŸ“
..
ðŸ“
3rd-party
📄
CHANGELOG.md
(709.33 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-affiliate.php
(205 B)
📄
class.jetpack-autoupdate.php
(9.74 KB)
📄
class.jetpack-bbpress-json-api.compat.php
(220 B)
📄
class.jetpack-cli.php
(71.4 KB)
📄
class.jetpack-client-server.php
(2.62 KB)
📄
class.jetpack-gutenberg.php
(44.27 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.7 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.88 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.35 KB)
ðŸ“
extensions
📄
functions.compat.php
(4.3 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)
📄
global.d.ts
(48 B)
ðŸ“
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
(33.55 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.frame-nonce-preview.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName /** * Allows viewing posts on the frontend when the user is not logged in. * * @package automattic/jetpack */ // phpcs:disable WordPress.Security.NonceVerification.Recommended -- This is _implementing_ cross-site nonce handling, no need for WordPress's nonces. /** * Allows viewing posts on the frontend when the user is not logged in. */ class Jetpack_Frame_Nonce_Preview { /** * Static instance. * * @todo This should be private. * @var self */ public static $instance = null; /** * Returns the single instance of the Jetpack_Frame_Nonce_Preview object * * @since 4.3.0 * * @return Jetpack_Frame_Nonce_Preview **/ public static function get_instance() { if ( null === self::$instance ) { self::$instance = new Jetpack_Frame_Nonce_Preview(); } return self::$instance; } /** * Constructor. * * @todo This should be private. */ public function __construct() { if ( isset( $_GET['frame-nonce'] ) && ! is_admin() ) { add_filter( 'pre_get_posts', array( $this, 'maybe_display_post' ) ); } // autosave previews are validated differently. if ( isset( $_GET['frame-nonce'] ) && isset( $_GET['preview_id'] ) && isset( $_GET['preview_nonce'] ) ) { remove_action( 'init', '_show_post_preview' ); add_action( 'init', array( $this, 'handle_autosave_nonce_validation' ) ); } } /** * Verify that frame nonce exists, and if so, validate the nonce by calling WP.com. * * @since 4.3.0 * * @return bool */ public function is_frame_nonce_valid() { if ( empty( $_GET['frame-nonce'] ) ) { return false; } $xml = new Jetpack_IXR_Client(); $xml->query( 'jetpack.verifyFrameNonce', sanitize_key( $_GET['frame-nonce'] ) ); if ( $xml->isError() ) { return false; } return (bool) $xml->getResponse(); } /** * Conditionally add a hook on posts_results if this is the main query, a preview, and singular. * * @since 4.3.0 * * @param WP_Query $query Query. * @return WP_Query */ public function maybe_display_post( $query ) { if ( $query->is_main_query() && $query->is_preview() && $query->is_singular() ) { add_filter( 'posts_results', array( $this, 'set_post_to_publish' ), 10, 2 ); } return $query; } /** * Conditionally set the first post to 'publish' if the frame nonce is valid and there is a post. * * @since 4.3.0 * * @param array $posts Posts. * @return array */ public function set_post_to_publish( $posts ) { remove_filter( 'posts_results', array( $this, 'set_post_to_publish' ), 10 ); if ( empty( $posts ) || is_user_logged_in() || ! $this->is_frame_nonce_valid() ) { return $posts; } $posts[0]->post_status = 'publish'; // Disable comments and pings for this post. add_filter( 'comments_open', '__return_false' ); add_filter( 'pings_open', '__return_false' ); return $posts; } /** * Handle validation for autosave preview request * * @since 4.7.0 */ public function handle_autosave_nonce_validation() { if ( ! $this->is_frame_nonce_valid() ) { wp_die( esc_html__( 'Sorry, you are not allowed to preview drafts.', 'jetpack' ) ); } add_filter( 'the_preview', '_set_preview' ); } } Jetpack_Frame_Nonce_Preview::get_instance();
Upload File
Create Folder