| Server IP : 195.130.67.5 / Your IP : 216.73.217.127 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /inetpub/wwwroot/ia/wp-content/plugins/wpforms-lite/includes/ |
Upload File : |
<?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;
}
}