WS_OK_7.4.33 HEX
HEX
Server: nginx/1.21.4
System: Linux v12674 6.8.0-85-generic #85-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 18 15:26:59 UTC 2025 x86_64
User: endtheignorance (1014)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v12674/lcafresno/public_html/wp-content/plugins/jetpack/_inc/lib/forms-integration.php
<?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();
}