PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / 2.15.3
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder v2.15.3
3.3.1 V-3.3.0 3.2.2 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 V3.0.3 V3.0.2 -3.0.1 V_3.0.0 1.1.1 1.1.8 1.2 1.3 1.4 1.4.18 1.5.2 1.9 2.0 2.10.0 2.10.1 All 138 releases
← All changes | includes/Core/Capability/Request.php +7 -4 2.02.15.3 View file →
@@ -3,10 +3,12 @@
3 3 namespace BitCode\BitForm\Core\Capability;
4 4
5 5 use BitCode\BitForm\Core\Util\FileDownloadProvider;
6 6
7 -final class Request {
8 - public static function Check($type) {
7 +final class Request
8 +{
9 + public static function Check($type)
10 + {
9 11 switch ($type) {
10 12 case 'admin':
11 13 return is_admin();
12 14
@@ -23,11 +25,12 @@
23 25 return (!is_admin() || defined('DOING_AJAX')) && !defined('DOING_CRON');
24 26 }
25 27 }
26 28
27 - public static function isPluginPage() {
29 + public static function isPluginPage()
30 + {
28 31 $queryToRemove = ['formID', 'entryID', 'fileID', 'download'];
29 - $parsed_url = parse_url(home_url());
32 + $parsed_url = wp_parse_url(home_url());
30 33 $site_url = $parsed_url['scheme'] . '://' . $parsed_url['host'];
31 34
32 35 $reqUrl = $site_url . remove_query_arg($queryToRemove, $_SERVER['REQUEST_URI']);
33 36 $downloadUrl = FileDownloadProvider::getBaseDownloadURL();