????JFIF??x?x????'
| Server IP : 104.21.30.238 / Your IP : 216.73.216.87 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /././home/tempvsty/pontiacques.org/wp-content/plugins/jetpack/_inc/lib/ |
Upload File : |
<?php
/**
* File that sets up Jetpack integration with the Forms package.
*
* @package automattic/jetpack
*/
/**
* Registers filters for integration with Forms package.
*/
function jetpack_forms_integration_init() {
// Only add the hook if we have the forms package
if ( ! class_exists( 'Automattic\Jetpack\Forms\ContactForm\Contact_Form_Field' ) ) {
return;
}
// Add filter to provide the upload token
add_filter( 'jetpack_forms_file_upload_token', 'jetpack_forms_provide_upload_token' );
}
add_action( 'init', 'jetpack_forms_integration_init' );
/**
* Provides an upload token using the Unauth_File_Upload_Handler.
*
* @return string The generated upload token.
*/
function jetpack_forms_provide_upload_token() {
require_once JETPACK__PLUGIN_DIR . '/_inc/lib/class-unauth-file-upload-handler.php';
$handler = new Automattic\Jetpack\Unauth_File_Upload_Handler();
return $handler->generate_upload_token();
}