diff --git a/inc/pantheon-page-cache.php b/inc/pantheon-page-cache.php index fd4fe29..016debb 100644 --- a/inc/pantheon-page-cache.php +++ b/inc/pantheon-page-cache.php @@ -236,9 +236,11 @@ public function action_admin_footer_trigger_plugin_open() { */ public function default_ttl_field() { $disabled = ( has_filter( 'pantheon_cache_default_max_age' ) ) ? ' disabled' : ''; + echo wp_kses_post( apply_filters( 'pantheon_cache_default_ttl_field_before_html', '
' ) ); echo '

' . esc_html__( 'Default Max Age', 'pantheon-cache' ) . '

'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped echo '

' . esc_html__( 'Maximum time a cached page will be served. A higher max-age typically improves site performance.', 'pantheon-cache' ) . '

'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped echo ' ' . esc_html__( 'seconds', 'pantheon-cache' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped + echo wp_kses_post( apply_filters( 'pantheon_cache_default_ttl_field_after_html', '
' ) ); // Display a message if the setting is disabled. if ( $disabled ) {