Skip to content

Commit 742dcf3

Browse files
author
Hai Zheng
committed
- Filter value display improvements.
1 parent 1438579 commit 742dcf3

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

src/admin-display.cls.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,26 +1124,26 @@ protected function _check_overwritten( $id ) {
11241124

11251125
if ($server_val !== null) {
11261126
// Show $_SERVER value.
1127-
printf(__('This setting is overwritten by the %s variable.', 'litespeed-cache'), '$_SERVER');
1127+
printf(__('This value is overwritten by the %s variable.', 'litespeed-cache'), '$_SERVER');
11281128
$val = '$_SERVER["'.$server_val[0].'"] = ' . $server_val[1];
11291129
}
11301130
else if ($filter_val !== null) {
11311131
// Show filter value.
1132-
echo __('This setting is overwritten by the filter.', 'litespeed-cache');
1132+
echo __('This value is overwritten by the filter.', 'litespeed-cache');
11331133
}
11341134
else if ($const_val !== null) {
11351135
// Show CONSTANT value.
1136-
printf(__('This setting is overwritten by the PHP constant %s.', 'litespeed-cache'), '<code>' . Base::conf_const($id) . '</code>');
1136+
printf(__('This value is overwritten by the PHP constant %s.', 'litespeed-cache'), '<code>' . Base::conf_const($id) . '</code>');
11371137
} elseif (is_multisite() ){
11381138
// Show multisite overwrite.
11391139
if( get_current_blog_id() != BLOG_ID_CURRENT_SITE && $this->conf(self::NETWORK_O_USE_PRIMARY)) {
1140-
echo __('This setting is overwritten by the primary site setting.', 'litespeed-cache');
1140+
echo __('This value is overwritten by the primary site setting.', 'litespeed-cache');
11411141
} else {
1142-
echo __('This setting is overwritten by the Network setting.', 'litespeed-cache');
1142+
echo __('This value is overwritten by the Network setting.', 'litespeed-cache');
11431143
}
11441144
}
11451145

1146-
echo sprintf(__('Currently set to %s', 'litespeed-cache'), "<code>$val</code>") . '</div>';
1146+
echo ' ' . sprintf(__('Currently set to %s', 'litespeed-cache'), "<code>$val</code>") . '</div>';
11471147
} else if( 'textarea' === $type && null !== $filter_val ){
11481148
// Show warning for textarea.
11491149
// Textarea sizes.

tpl/crawler/blacklist.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
?>
8383
</span>
8484
</p>
85-
<?php echo wp_kses_post( $__admin_display->_check_overwritten( 'crawler-blocklist' ) ); ?>
85+
<?php $__admin_display->_check_overwritten( 'crawler-blocklist' ); ?>
8686
<p>
8787
<i class="litespeed-dot litespeed-bg-default"></i> = <?php esc_html_e( 'Not blocklisted', 'litespeed-cache' ); ?><br>
8888
<i class="litespeed-dot litespeed-bg-warning"></i> = <?php esc_html_e( 'Blocklisted due to not cacheable', 'litespeed-cache' ); ?><br>

tpl/page_optm/settings_css.tpl.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@
8585
<br /><?php esc_html_e( 'Automatic generation of unique CSS is in the background via a cron-based queue.', 'litespeed-cache' ); ?>
8686
<br />
8787
<font class="litespeed-success"><?php esc_html_e( 'API', 'litespeed-cache' ); ?>: <?php printf( esc_html__( 'Filter %s available for UCSS per page type generation.', 'litespeed-cache' ), '<code>add_filter( "litespeed_ucss_per_pagetype", "__return_true" );</code>' ); ?></font>
88-
89-
<?php echo wp_kses_post( $__admin_display->_check_overwritten( 'optm-ucss_per_pagetype' ) ); ?>
88+
<?php $__admin_display->_check_overwritten( 'optm-ucss_per_pagetype' ); ?>
9089

9190
<?php if ( $this->conf( Base::O_OPTM_UCSS ) && ! $this->conf( Base::O_OPTM_CSS_COMB ) ) : ?>
9291
<br />

tpl/page_optm/settings_media.tpl.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212

1313
defined( 'WPINC' ) || exit;
1414

15+
$__admin_display = Admin_Display::cls();
1516
$placeholder_summary = Placeholder::get_summary();
16-
17-
$closest_server = Cloud::get_summary( 'server.' . Cloud::SVC_LQIP );
17+
$closest_server = Cloud::get_summary( 'server.' . Cloud::SVC_LQIP );
1818

1919
$lqip_queue = $this->load_queue( 'lqip' );
2020

@@ -256,6 +256,7 @@
256256
<?php esc_html_e( 'API', 'litespeed-cache' ); ?>:
257257
<?php printf( esc_html__( 'Use %1$s to bypass remote image dimension check when %2$s is ON.', 'litespeed-cache' ), '<code>add_filter( "litespeed_media_ignore_remote_missing_sizes", "__return_true" );</code>', '<code>' . esc_html( Lang::title( Base::O_MEDIA_ADD_MISSING_SIZES ) ) . '</code>' ); ?>
258258
</font>
259+
<?php $__admin_display->_check_overwritten( Base::O_MEDIA_ADD_MISSING_SIZES ); ?>
259260
</div>
260261
</td>
261262
</tr>

0 commit comments

Comments
 (0)