diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c5e76de..153b75dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ This is an alpha version! The changes listed here are not final. - Updated package dependencies. ### Fixed +- 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. ## [1.12.1] - 2024-05-09 diff --git a/wp-cache.php b/wp-cache.php index 9f71130a..7ee2dac4 100644 --- a/wp-cache.php +++ b/wp-cache.php @@ -2920,7 +2920,7 @@ function wp_cache_plugin_notice( $plugin ) { add_action( 'after_plugin_row', 'wp_cache_plugin_notice' ); function wp_cache_plugin_actions( $links, $file ) { - if( $file == 'wp-super-cache/wp-cache.php' && function_exists( 'admin_url' ) ) { + if ( $file === 'wp-super-cache/wp-cache.php' && function_exists( 'admin_url' ) && is_array( $links ) ) { $settings_link = '' . __( 'Settings', 'wp-super-cache' ) . ''; array_unshift( $links, $settings_link ); // before other links }