diff --git a/CHANGELOG.md b/CHANGELOG.md index 0af7bc2b..93da49cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ This is an alpha version! The changes listed here are not final. ### Changed - General: update WordPress version requirements to WordPress 6.4. +- General: use wp_admin_notice function introduced in WP 6.4 to display notices. - Updated package dependencies. ### Fixed diff --git a/partials/preload.php b/partials/preload.php index f7809313..6430997b 100644 --- a/partials/preload.php +++ b/partials/preload.php @@ -4,7 +4,12 @@ echo ''; if ( ! $cache_enabled || ! $super_cache_enabled || true === defined( 'DISABLESUPERCACHEPRELOADING' ) ) { - echo '

' . __( 'Preloading of cache disabled. Please make sure simple or expert mode is enabled or talk to your host administrator.', 'wp-super-cache' ) . '

'; + wp_admin_notice( + esc_html__( 'Preloading of cache disabled. Please make sure simple or expert mode is enabled or talk to your host administrator.', 'wp-super-cache' ), + array( + 'type' => 'warning', + ) + ); return; }