PluginProbe
WP Database Backup – Unlimited Database & Files Backup by Backup for WP / 6.7
WP Database Backup – Unlimited Database & Files Backup by Backup for WP v6.7
7.13 7.12 trunk 1.1 2.1.1 5.9 6.0 6.1 6.10 6.11 6.12 6.12.1 6.2 6.3 6.4 6.5 6.5.1 6.6 6.7 6.8 6.9 7.0 7.0.1 7.1 7.10 All 34 releases
← All changes | includes/admin/Destination/Google/google-api-php-client/src/cache/Google_FileCache.php +2 -4 7.126.7 View file →
@@ -1,6 +1,5 @@
1 1 <?php
2 -// phpcs:ignoreFile -- third party library
3 2 /*
4 3 * Copyright 2008 Google Inc.
5 4 *
6 5 * Licensed under the Apache License, Version 2.0 (the "License");
@@ -41,13 +40,12 @@
41 40 private function createLock($storageFile) {
42 41 $storageDir = dirname($storageFile);
43 42 if (! is_dir($storageDir)) {
44 43 // @codeCoverageIgnoreStart
45 - //phpcs:ignore
46 44 if (! @mkdir($storageDir, 0755, true)) {
47 45 // make sure the failure isn't because of a concurrency issue
48 46 if (! is_dir($storageDir)) {
49 - throw new Google_CacheException("Could not create storage directory: ".esc_html($storageDir));
47 + throw new Google_CacheException("Could not create storage directory: $storageDir");
50 48 }
51 49 }
52 50 // @codeCoverageIgnoreEnd
53 51 }
@@ -115,9 +113,9 @@
115 113 $this->waitForLock($storageFile);
116 114 }
117 115 if (! is_dir($storageDir)) {
118 116 if (! @mkdir($storageDir, 0755, true)) {
119 - throw new Google_CacheException("Could not create storage directory: ".esc_html($storageDir));
117 + throw new Google_CacheException("Could not create storage directory: $storageDir");
120 118 }
121 119 }
122 120 // we serialize the whole request object, since we don't only want the
123 121 // responseContent but also the postBody used, headers, size, etc