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/lcafreshheads/public_html/wp-content/plugins/wpforms-lite/includes/compat.php
<?php
/**
 * Compatibility shims (polyfills) for WordPress functions that bundled third-party
 * libraries may call before WPForms' minimum supported WordPress version (5.5) provides them.
 *
 * Each shim is guarded by a function_exists() check, so it only defines the function on older
 * WordPress versions and never collides with WordPress core.
 *
 * @since 2.0.0
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

if ( ! function_exists( 'wp_is_serving_rest_request' ) ) {
	/**
	 * Determine whether the current request is a WordPress REST API request.
	 *
	 * Polyfill for the function introduced in WordPress 6.5.
	 *
	 * @since 2.0.0
	 *
	 * @return bool Whether the current request is a REST API request.
	 */
	function wp_is_serving_rest_request() {

		return defined( 'REST_REQUEST' ) && REST_REQUEST;
	}
}