From 862c1e1c0ca17a321a874515d48c780c7864a81d Mon Sep 17 00:00:00 2001 From: Donncha O Caoimh <5656673+donnchawp@users.noreply.github.com> Date: Tue, 7 May 2024 15:50:09 +0100 Subject: [PATCH] Add form to delete Boost cache loader script --- projects/plugins/super-cache/inc/boost.php | 52 ++++++++++++++++++++++ projects/plugins/super-cache/wp-cache.php | 11 +---- 2 files changed, 54 insertions(+), 9 deletions(-) create mode 100644 projects/plugins/super-cache/inc/boost.php diff --git a/projects/plugins/super-cache/inc/boost.php b/projects/plugins/super-cache/inc/boost.php new file mode 100644 index 0000000000000..c2e0926906de0 --- /dev/null +++ b/projects/plugins/super-cache/inc/boost.php @@ -0,0 +1,52 @@ + +

+ +

+

+
+ + + +
+
+

' . esc_html__( 'Warning! Jetpack Boost Cache Detected', 'wp-super-cache' ) . '

'; - // translators: %s is the filename of the advanced-cache.php file - echo '

' . sprintf( esc_html__( 'The file %s was created by the Jetpack Boost plugin.', 'wp-super-cache' ), esc_html( $wpsc_advanced_cache_filename ) ) . '

'; - echo '

' . esc_html__( 'You can use Jetpack Boost and WP Super Cache at the same time but only if the Cache Site Pages module in Boost is disabled. To use WP Super Cache for caching:', 'wp-super-cache' ) . '

'; - // translators: %s is a html link to the plugins page - echo '
  1. ' . sprintf( esc_html__( 'Deactivate Jetpack Boost on the %s page.', 'wp-super-cache' ), '' . esc_html__( 'Plugins', 'wp-super-cache' ) . '' ) . '
  2. '; - echo '
  3. ' . esc_html__( 'Reload this page to configure WP Super Cache.', 'wp-super-cache' ) . '
  4. '; - echo '
  5. ' . esc_html__( 'Activate the Jetpack Boost plugin again.', 'wp-super-cache' ) . '
  6. '; - echo '
'; + wpsc_delete_boost_loader_form(); } elseif ( $other_advanced_cache ) { echo '

' . __( 'Warning! You may not be allowed to use this plugin on your site.', 'wp-super-cache' ) . "

"; echo '

' .