updated plugin W3 Total Cache
version 2.5.0
This commit is contained in:
@ -7,54 +7,30 @@ if ( ! defined( 'W3TC' ) ) {
|
||||
?>
|
||||
<?php require W3TC_INC_DIR . '/options/common/header.php'; ?>
|
||||
|
||||
<form action="admin.php?page=<?php echo esc_attr( $this->_page ); ?>" method="post">
|
||||
<p>
|
||||
<?php
|
||||
echo wp_kses(
|
||||
sprintf(
|
||||
// translators: 1 HTML strong tag containing PageCache Engine name, 2 HTML span tag containing PageCache Engine enabled/disabled.
|
||||
__(
|
||||
'Page caching via %1$s is currently %2$s',
|
||||
'w3-total-cache'
|
||||
),
|
||||
'<strong>' . esc_html( Cache::engine_name( $this->_config->get_string( 'pgcache.engine' ) ) ) . '</strong>',
|
||||
'<span class="w3tc-' . ( $pgcache_enabled ? 'enabled">' . esc_html__( 'enabled', 'w3-total-cache' ) : 'disabled">' . esc_html__( 'disabled', 'w3-total-cache' ) ) . '</span>.'
|
||||
<p>
|
||||
<?php
|
||||
echo wp_kses(
|
||||
sprintf(
|
||||
// translators: 1 HTML strong tag containing PageCache Engine name, 2 HTML span tag containing PageCache Engine enabled/disabled.
|
||||
__(
|
||||
'Page caching via %1$s is currently %2$s',
|
||||
'w3-total-cache'
|
||||
),
|
||||
array(
|
||||
'strong' => array(),
|
||||
'span' => array(
|
||||
'class' => array(),
|
||||
),
|
||||
)
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
<p>
|
||||
<?php
|
||||
echo wp_kses(
|
||||
sprintf(
|
||||
// translators: 1 Nonce Field followed by submit HTML input to flush PageCache.
|
||||
__(
|
||||
'To rebuild the page cache use the %1$s operation',
|
||||
'w3-total-cache'
|
||||
),
|
||||
Util_Ui::nonce_field( 'w3tc' ) . '<input type="submit" name="w3tc_flush_pgcache" value="empty cache"' . disabled( $pgcache_enabled, false, false ) . ' class="button" />'
|
||||
'<strong>' . esc_html( Cache::engine_name( $this->_config->get_string( 'pgcache.engine' ) ) ) . '</strong>',
|
||||
'<span class="w3tc-' . ( $pgcache_enabled ? 'enabled">' . esc_html__( 'enabled', 'w3-total-cache' ) : 'disabled">' . esc_html__( 'disabled', 'w3-total-cache' ) ) . '</span>.'
|
||||
),
|
||||
array(
|
||||
'strong' => array(),
|
||||
'span' => array(
|
||||
'class' => array(),
|
||||
),
|
||||
array(
|
||||
'input' => array(
|
||||
'type' => array(),
|
||||
'name' => array(),
|
||||
'value' => array(),
|
||||
'disabled' => array(),
|
||||
'class' => array(),
|
||||
),
|
||||
)
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
</form>
|
||||
)
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
|
||||
<form action="admin.php?page=<?php echo esc_attr( $this->_page ); ?>" method="post">
|
||||
<?php Util_UI::print_control_bar( 'pagecache_form_control' ); ?>
|
||||
<div class="metabox-holder">
|
||||
<?php Util_Ui::postbox_header( esc_html__( 'General', 'w3-total-cache' ), '', 'general' ); ?>
|
||||
<table class="form-table">
|
||||
@ -147,7 +123,6 @@ if ( ! defined( 'W3TC' ) ) {
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<?php Util_Ui::button_config_save( 'pagecache_general' ); ?>
|
||||
<?php Util_Ui::postbox_footer(); ?>
|
||||
|
||||
<?php Util_Ui::postbox_header( esc_html__( 'Aliases', 'w3-total-cache' ), '', 'mirrors' ); ?>
|
||||
@ -209,7 +184,7 @@ if ( ! defined( 'W3TC' ) ) {
|
||||
);
|
||||
?>
|
||||
</table>
|
||||
<?php Util_Ui::button_config_save( 'pagecache_aliases' ); ?>
|
||||
|
||||
<?php Util_Ui::postbox_footer(); ?>
|
||||
|
||||
<?php Util_Ui::postbox_header( esc_html__( 'Cache Preload', 'w3-total-cache' ), '', 'cache_preload' ); ?>
|
||||
@ -278,7 +253,6 @@ if ( ! defined( 'W3TC' ) ) {
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<?php Util_Ui::button_config_save( 'pagecache_cache_preload' ); ?>
|
||||
<?php Util_Ui::postbox_footer(); ?>
|
||||
|
||||
<?php
|
||||
@ -386,7 +360,6 @@ if ( ! defined( 'W3TC' ) ) {
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<?php Util_Ui::button_config_save( 'pagecache_purge_policy' ); ?>
|
||||
<?php Util_Ui::postbox_footer(); ?>
|
||||
|
||||
<?php
|
||||
@ -476,7 +449,7 @@ if ( ! defined( 'W3TC' ) ) {
|
||||
);
|
||||
?>
|
||||
</table>
|
||||
<?php Util_Ui::button_config_save( 'rest' ); ?>
|
||||
|
||||
<?php Util_Ui::postbox_footer(); ?>
|
||||
|
||||
|
||||
@ -808,7 +781,6 @@ if ( ! defined( 'W3TC' ) ) {
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
|
||||
<?php Util_Ui::button_config_save( 'pagecache_advanced' ); ?>
|
||||
<?php Util_Ui::postbox_footer(); ?>
|
||||
|
||||
<?php Util_Ui::postbox_header( esc_html__( 'Note(s)', 'w3-total-cache' ), '', 'notes' ); ?>
|
||||
@ -881,5 +853,3 @@ if ( ! defined( 'W3TC' ) ) {
|
||||
<?php Util_Ui::postbox_footer(); ?>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<?php require W3TC_INC_DIR . '/options/common/footer.php'; ?>
|
||||
|
Reference in New Issue
Block a user