Skip to content

Commit

Permalink
Super cache - fix tempnam system directory warning (#38028)
Browse files Browse the repository at this point in the history
* Create cache directory first

* changelog

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/9662108752

Upstream-Ref: Automattic/jetpack@54de012
  • Loading branch information
dilirity authored and matticbot committed Jun 25, 2024
1 parent dde1a99 commit 9fc77a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ This is an alpha version! The changes listed here are not final.
### Fixed
- Detect when WP_CACHE is defined with "const" in wp-config.php
- Super Cache: Align detection of Boost installs with activation of that plugin
- Super Cache: create the cache directory before creating the config file
- Super Cache: do not show migration notice if already using Boost Cache
- Super Cache: fixed a PHP warning when deactivating the plugin.
- Super Cache: make sure plugins links is an array before using it.
Expand Down
4 changes: 2 additions & 2 deletions wp-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,9 @@ function wpsupercache_activate() {
wpsc_init();

if (
! wp_cache_verify_cache_dir() ||
! wpsc_check_advanced_cache() ||
! wp_cache_verify_config_file() ||
! wp_cache_verify_cache_dir()
! wp_cache_verify_config_file()
) {
$text = ob_get_contents();
ob_end_clean();
Expand Down

0 comments on commit 9fc77a0

Please sign in to comment.