Diff: STRATO-apps/wordpress_03/app/wp-content/plugins/wp-rocket/inc/3rd-party/hosting/wp-serveur.php

Keine Baseline-Datei – Diff nur gegen leer.
Zur Liste
1 -
1 + <?php
2 +
3 + defined( 'ABSPATH' ) || exit;
4 +
5 + /**
6 + * Allow to purge Varnish on WP Serveur websites.
7 + *
8 + * @since 2.6.11
9 + */
10 + add_filter( 'do_rocket_varnish_http_purge', '__return_true' );
11 + // Prevent mandatory cookies on hosting with server cache.
12 + add_filter( 'rocket_cache_mandatory_cookies', '__return_empty_array', PHP_INT_MAX );
13 +
14 + /**
15 + * Changes the text on the Varnish one-click block.
16 + *
17 + * @since 3.0
18 + * @author Remy Perona
19 + *
20 + * @param array $settings Field settings data.
21 + *
22 + * @return array modified field settings data.
23 + */
24 + function rocket_wpserveur_varnish_field( $settings ) {
25 + $settings['varnish_auto_purge']['title'] = sprintf(
26 + // Translators: %s = Hosting name.
27 + __( 'Your site is hosted on %s, we have enabled Varnish auto-purge for compatibility.', 'rocket' ),
28 + 'WP Serveur'
29 + );
30 +
31 + return $settings;
32 + }
33 + add_filter( 'rocket_varnish_field_settings', 'rocket_wpserveur_varnish_field' );
34 +
35 + add_filter( 'rocket_display_input_varnish_auto_purge', '__return_false' );
36 +