You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: check_compatibility.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -96,11 +96,11 @@ function checkCompatible() {
96
96
$line2 = __('These incompatible files have been found to be loaded from another plugin: ', 'geoip-detect') . $data;
97
97
$line3 = __('Please test if looking up an IP adress works without an PHP Error. If it works, you can dismiss this notice. It will appear again when their libraries are changed.', 'geoip-detect');
98
98
99
-
$body = <<<BODY
99
+
$body = "
100
100
<p><i>$line1</i></p>
101
101
<p>$line2</p>
102
102
<p>$line3</p>
103
-
BODY;
103
+
";
104
104
$this->adminNotices[] = [
105
105
'id' => 'maxmind_vendor_old_' . md5($data),
106
106
'title' => __('Geolocation IP Detection: Warning: Old Maxmind Libraries detected.', 'geoip-detect'),
<span class="detail-box">In server configurations without reverse proxy, this will equal to the "detected client IP". Otherwise, this is the IP of the reverse proxy.</span>
<span class="detail-box">Reverse proxies usually add this header to indicate the original IP. If several IPs are given here (seperated by a comma), the correct user IP usually is the leftmost one.</span>
<i>(Probably you should enable the reverse proxy option.)</i>
@@ -56,10 +56,10 @@
56
56
57
57
<li>Add known proxies of a cloud provider enabled: <b><?phpechoget_option('geoip-detect-dynamic_reverse_proxies') ? 'Yes, ' . ucfirst(get_option('geoip-detect-dynamic_reverse_proxy_type', '')) : 'No'; ?></b>
58
58
<span class="detail-box">If your site is hosted by CloudFlare or AWS, this should probably be enabled. It will automatically retrieve the many IP adresses that a reverse proxy of this provider can have, and update the list daily.</span>
59
-
<span class="detail-box">Here is the current list of IP adresses: <b><?=implode(', ', \YellowTree\GeoipDetect\DynamicReverseProxies\addDynamicIps()) ?: '(Empty)'?></b></span>
59
+
<span class="detail-box">Here is the current list of IP adresses: <b><?phpechoimplode(', ', \YellowTree\GeoipDetect\DynamicReverseProxies\addDynamicIps()) ?: '(Empty)'?></b></span>
60
60
<span class="detail-box">
61
-
Last updated: <b><?=geoip_detect_format_localtime($last_update); ?></b><br>
62
-
Next update: <b><?=geoip_detect_format_localtime(wp_next_scheduled('geoipdetectdynamicproxiesupdate')); ?></b>
61
+
Last updated: <b><?phpechogeoip_detect_format_localtime($last_update); ?></b><br>
62
+
Next update: <b><?phpechogeoip_detect_format_localtime(wp_next_scheduled('geoipdetectdynamicproxiesupdate')); ?></b>
0 commit comments