updated plugin W3 Total Cache version 2.6.1

This commit is contained in:
2023-12-08 23:23:32 +00:00
committed by Gitium
parent fa428d9da9
commit 33d18af972
82 changed files with 5759 additions and 1701 deletions

View File

@ -242,7 +242,7 @@ class ServiceRestProxy extends RestProxy
throw $reason;
}
]);
return $eachPromise->promise()->wait();
}
@ -379,7 +379,7 @@ class ServiceRestProxy extends RestProxy
}
/**
* Throws ServiceException if the recieved status code is not expected.
* Throws ServiceException if the received status code is not expected.
*
* @param string $actual The received status code.
* @param string $reason The reason phrase.

View File

@ -132,17 +132,19 @@ class Minify_Cache_File {
*
* @param string $id cache id (e.g. a filename)
*
* @return string
* @return string|false
*/
public function fetch($id)
{
$path = $this->_path . '/' . $id;
$data = @file_get_contents($path . '_meta');
if ($data) {
if ( ! empty( $data ) ) {
$data = @unserialize($data);
if (!is_array($data))
$data = array();
} else {
$data = array();
}
if (is_readable($path)) {

View File

@ -589,7 +589,7 @@ class W3tcOAuthUtil {
$value = isset($split[1]) ? W3tcOAuthUtil::urldecode_rfc3986($split[1]) : '';
if (isset($parsed_parameters[$parameter])) {
// We have already recieved parameter(s) with this name, so add to the list
// We have already received parameter(s) with this name, so add to the list
// of parameters with this name
if (is_scalar($parsed_parameters[$parameter])) {