Skip to content

Commit

Permalink
Super Cache: check for the same Boost that the plugin later tries to …
Browse files Browse the repository at this point in the history
…install (#37896)

* Detect Boost in the public install directory.

* This is because the activation code tries to activate
  jetpack-boost/jetpack-boost.php

* changelog

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

Upstream-Ref: Automattic/jetpack@ee9aedc
  • Loading branch information
donnchawp authored and matticbot committed Jun 17, 2024
1 parent c156ff5 commit 8764d97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ This is an alpha version! The changes listed here are not final.
- Updated package dependencies.

### Fixed
- Super Cache: Align detection of Boost installs with activation of that plugin
- Super Cache: make sure plugins links is an array before using it.
- Super Cache: remove the preload interval based on the post count. Preload as often as you want.

Expand Down
2 changes: 1 addition & 1 deletion wp-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ function wpsc_is_boost_installed() {
$plugins = array_keys( get_plugins() );

foreach ( $plugins as $plugin ) {
if ( str_contains( $plugin, 'jetpack-boost.php' ) ) {
if ( str_contains( $plugin, 'jetpack-boost/jetpack-boost.php' ) ) {
return true;
}
}
Expand Down

0 comments on commit 8764d97

Please sign in to comment.