Version Description
Download this release
Release Info
Developer | jetpackisbestpack |
Plugin | WP Super Cache |
Version | 1.9.2-beta2 |
Comparing to | |
See all releases |
Code changes from version 1.9.2-beta to 1.9.2-beta2
- wp-cache.php +4 -3
wp-cache.php
CHANGED
@@ -321,7 +321,7 @@ function wpsc_is_boost_active() {
|
|
321 |
*/
|
322 |
function wpsc_hide_boost_banner() {
|
323 |
check_ajax_referer( 'wpsc_dismiss_boost_banner', 'nonce' );
|
324 |
-
|
325 |
|
326 |
wp_die();
|
327 |
}
|
@@ -347,7 +347,8 @@ add_action( 'wp_ajax_wpsc_activate_boost', 'wpsc_ajax_activate_boost' );
|
|
347 |
*/
|
348 |
function wpsc_jetpack_boost_install_banner() {
|
349 |
// Don't show the banner if Boost is installed, or the banner has been dismissed.
|
350 |
-
|
|
|
351 |
return;
|
352 |
}
|
353 |
|
@@ -371,7 +372,7 @@ function wpsc_jetpack_boost_install_banner() {
|
|
371 |
<p id="wpsc-install-invitation">
|
372 |
<?php
|
373 |
esc_html_e(
|
374 |
-
'Caching is a great start, but there is
|
375 |
'wp-super-cache'
|
376 |
);
|
377 |
?>
|
321 |
*/
|
322 |
function wpsc_hide_boost_banner() {
|
323 |
check_ajax_referer( 'wpsc_dismiss_boost_banner', 'nonce' );
|
324 |
+
update_user_option( get_current_user_id(), 'wpsc_dismissed_boost_banner', '1' );
|
325 |
|
326 |
wp_die();
|
327 |
}
|
347 |
*/
|
348 |
function wpsc_jetpack_boost_install_banner() {
|
349 |
// Don't show the banner if Boost is installed, or the banner has been dismissed.
|
350 |
+
$is_dismissed = '1' === get_user_option( 'wpsc_dismissed_boost_banner' );
|
351 |
+
if ( wpsc_is_boost_active() || $is_dismissed ) {
|
352 |
return;
|
353 |
}
|
354 |
|
372 |
<p id="wpsc-install-invitation">
|
373 |
<?php
|
374 |
esc_html_e(
|
375 |
+
'Caching is a great start, but there is more to maximize your site speed. Find out how much your cache speeds up your site and make it blazing fast with Jetpack Boost, the easiest WordPress speed optimization plugin developed by Super Cache engineers.',
|
376 |
'wp-super-cache'
|
377 |
);
|
378 |
?>
|