Skip to content

Commit a8d282c

Browse files
committed
Compatibility updates for PHP 8.1
1 parent af266a2 commit a8d282c

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,3 +213,4 @@ pip-log.txt
213213

214214
#Mr Developer
215215
.mr.developer.cfg
216+
/.vs

library/dependencies/HTTP/Request2.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -945,9 +945,11 @@ public function send()
945945
}
946946
// magic_quotes_runtime may break file uploads and chunked response
947947
// processing; see bug #4543. Don't use ini_get() here; see bug #16440.
948+
/*
948949
if ($magicQuotes = get_magic_quotes_runtime()) {
949950
set_magic_quotes_runtime(false);
950951
}
952+
*/
951953
// force using single byte encoding if mbstring extension overloads
952954
// strlen() and substr(); see bug #1781, bug #10605
953955
if (extension_loaded('mbstring') && (2 & ini_get('mbstring.func_overload'))) {
@@ -960,9 +962,11 @@ public function send()
960962
} catch (Exception $e) {
961963
}
962964
// cleanup in either case (poor man's "finally" clause)
965+
/*
963966
if ($magicQuotes) {
964967
set_magic_quotes_runtime(true);
965968
}
969+
*/
966970
if (!empty($oldEncoding)) {
967971
mb_internal_encoding($oldEncoding);
968972
}

project-nami-blob-cache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Description: External full page caching for WordPress.
66
* Author: Patrick Bates, Spencer Cameron
77
* Author URI: http://projectnami.org/
8-
* Version: 3.1
8+
* Version: 3.2
99
* License: GPL2
1010
*/
1111

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Project Nami Blob Cache
44
* Contributors: patricknami, spencercameron
55
* Tags: cache, caching, speed, optimize, optimization, performance
66
* Requires at least: ```3.3```
7-
* Tested up to: ```4.9.1```
8-
* Stable tag: 3.1
7+
* Tested up to: ```6.0.3```
8+
* Stable tag: 3.2
99
* License: GPLv2 or later
1010
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
1111

0 commit comments

Comments
 (0)