| @@ -97,9 +97,9 @@ | ||
| 97 | 97 | * @return bool True if saved. |
| 98 | 98 | */ |
| 99 | 99 | public static function save_from_post($post = null) { |
| 100 | 100 | if ($post === null) { |
| 101 | - $post = $_POST; | |
| 101 | + $post = $_POST; // phpcs:ignore WordPress.Security.NonceVerification.Missing -- every caller verifies a nonce and capability first | |
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | // Only save if at least one edge-cache field is present in the payload. |
| 105 | 105 | if (!isset($post['cache_tags_enabled'])) { |
| @@ -150,9 +150,9 @@ | ||
| 150 | 150 | $show_flywheel = defined('FLYWHEEL_CONFIG_DIR'); |
| 151 | 151 | ?> |
| 152 | 152 | <div style="background: var(--dashboard-card-bg); padding: 20px; border-radius: 8px;"> |
| 153 | 153 | <p style="color: var(--dashboard-text-secondary); margin: 0 0 20px 0;"> |
| 154 | - Configure CDN credentials for cache-tag purging. When enabled, cache-tag headers are added to OTTO-processed pages so CDNs can purge by post ID. | |
| 154 | + Configure CDN credentials for cache-tag purging. When enabled, cache-tag headers are added to <?php echo esc_html(Metasync::get_whitelabel_otto_name()); ?>-processed pages so CDNs can purge by post ID. | |
| 155 | 155 | </p> |
| 156 | 156 | |
| 157 | 157 | <?php wp_nonce_field(self::NONCE_ACTION, self::NONCE_FIELD); ?> |
| 158 | 158 | |
| @@ -212,13 +212,13 @@ | ||
| 212 | 212 | ), !$has_more_after_sevalla, 'Uses v3 edge cache purge API with v2 fallback. If KinstaCache mu-plugin is available, native purge is used instead.'); |
| 213 | 213 | } |
| 214 | 214 | |
| 215 | 215 | if ($show_cloudways) { |
| 216 | - self::render_provider('cloudways', 'Cloudways', 'purges Varnish cache per URL', $settings, array(), !$show_flywheel, 'Detected Cloudways Varnish. Enable to purge Varnish on each OTTO update.'); | |
| 216 | + self::render_provider('cloudways', 'Cloudways', 'purges Varnish cache per URL', $settings, array(), !$show_flywheel, sprintf('Detected Cloudways Varnish. Enable to purge Varnish on each %s update.', Metasync::get_whitelabel_otto_name())); | |
| 217 | 217 | } |
| 218 | 218 | |
| 219 | 219 | if ($show_flywheel) { |
| 220 | - self::render_provider('flywheel', 'Flywheel', 'full cache flush on OTTO updates', $settings, array(), true, 'Detected Flywheel hosting. Enable to clear cache on each OTTO update.'); | |
| 220 | + self::render_provider('flywheel', 'Flywheel', sprintf('full cache flush on %s updates', Metasync::get_whitelabel_otto_name()), $settings, array(), true, sprintf('Detected Flywheel hosting. Enable to clear cache on each %s update.', Metasync::get_whitelabel_otto_name())); | |
| 221 | 221 | } |
| 222 | 222 | ?> |
| 223 | 223 | </div> |
| 224 | 224 | </div> |