| @@ -1,16 +1,25 @@ | ||
| 1 | -<?php if (!defined('WPO_VERSION')) die('No direct access allowed'); ?> | |
| 1 | +<?php if (!defined('ABSPATH')) die('No direct access allowed'); ?> | |
| 2 | 2 | <div class="wpo_section wpo_group"> |
| 3 | 3 | <form> |
| 4 | 4 | <?php if ($is_cache_enabled) : ?> |
| 5 | - <div id="minify-preload" class="notice notice-warning wpo-warning below-h2 wp-optimize-minify-status-information-notice wpo-show"> | |
| 5 | + <div id="minify-preload" class="notice notice-warning wpo-warning below-h2 wpo-show"> | |
| 6 | 6 | <p> |
| 7 | 7 | <span class="dashicons dashicons-info"></span> |
| 8 | - <?php printf(__('You are using WP-Optimize for page caching. Because of that, the pre-load settings used for page-caching are used. i.e. To configure pre-loading, go to the <a href="%s">settings in the caching section</a> instead.', 'wp-optimize'), admin_url('admin.php?page=wpo_cache&tab=wp_optimize_preload'), __('Cache Preload', 'wp-optimize')); ?><br> | |
| 8 | + <?php | |
| 9 | + $message = esc_html__('You are using WP-Optimize for page caching.', 'wp-optimize'); | |
| 10 | + $message .= ' '; | |
| 11 | + $message .= esc_html__('Because of that, the pre-load settings used for page-caching are used.', 'wp-optimize'); | |
| 12 | + $message .= ' '; | |
| 13 | + // translators: %1$s is a opening anchor tag and %2$s is a closing anchor tag | |
| 14 | + $message .= sprintf(esc_html__('i.e. To configure pre-loading, go to the %1$sCache Preload settings in the caching section%2$s instead.', 'wp-optimize'), '<a href="' . esc_url(admin_url('admin.php?page=wpo_cache&tab=wp_optimize_preload')) . '">', '</a>'); | |
| 15 | + echo wp_kses_post($message); | |
| 16 | + ?> | |
| 17 | + <br> | |
| 9 | 18 | </p> |
| 10 | 19 | </div> |
| 11 | 20 | <?php endif; ?> |
| 12 | - <h3 class="wpo-first-child"><?php _e('Preload now', 'wp-optimize'); ?></h3> | |
| 21 | + <h3 class="wpo-first-child"><?php esc_html_e('Preload now', 'wp-optimize'); ?></h3> | |
| 13 | 22 | <div class="wpo-fieldgroup"> |
| 14 | 23 | <p> |
| 15 | 24 | <input id="wp_optimize_run_minify_preload" |
| 16 | 25 | class="button button-primary" type="submit" |
| @@ -19,14 +28,14 @@ | ||
| 19 | 28 | <?php echo $is_running ? 'data-running="1"' : ''; ?> |
| 20 | 29 | <?php echo $is_cache_enabled ? "disabled" : ""; ?> |
| 21 | 30 | > |
| 22 | 31 | <span id="wp_optimize_preload_minify_status"><?php |
| 23 | - echo htmlspecialchars($status_message); | |
| 32 | + echo esc_html($status_message); | |
| 24 | 33 | ?></span> |
| 25 | 34 | </p> |
| 26 | 35 | <span> |
| 27 | - <?php _e('This action will trigger WP-Optimize to generate minify assets by visiting pages to preload them (so that they are ready the first time a human visitor wants them).', 'wp-optimize'); ?> | |
| 28 | - <?php _e('If a sitemap is available, then it will be used to determine which assets get minified.', 'wp-optimize'); ?> | |
| 36 | + <?php esc_html_e('This action will trigger WP-Optimize to generate minify assets by visiting pages to preload them (so that they are ready the first time a human visitor wants them).', 'wp-optimize'); ?> | |
| 37 | + <?php esc_html_e('If a sitemap is available, then it will be used to determine which assets get minified.', 'wp-optimize'); ?> | |
| 29 | 38 | </span> |
| 30 | 39 | </div> |
| 31 | 40 | </form> |
| 32 | 41 | </div> |