| @@ -207,9 +207,11 @@ | ||
| 207 | 207 | if (!file_exists($file)) { |
| 208 | 208 | return true; |
| 209 | 209 | } |
| 210 | 210 | |
| 211 | - return wp_delete_file($file); | |
| 211 | + $deleted = wp_delete_file($file); | |
| 212 | + | |
| 213 | + return ($deleted || is_null($deleted)); | |
| 212 | 214 | } |
| 213 | 215 | |
| 214 | 216 | |
| 215 | 217 | function acym_getInternalFileContents(string $path) |