updated plugin W3 Total Cache version 2.3.3

This commit is contained in:
2023-06-28 12:45:56 +00:00
committed by Gitium
parent 7d5eef77cf
commit aa3da0eb92
129 changed files with 17998 additions and 186 deletions

View File

@ -273,6 +273,37 @@ class Generic_AdminActions_Default {
}
}
/**
* Page Cache tab
*/
if ( 'w3tc_pgcache' === $this->_page ) {
// Textarea settings.
$settings = array(
'pgcache.mirrors.home_urls',
'pgcache.purge.pages',
'pgcache.accept.qs',
'pgcache.reject.ua',
'pgcache.reject.cookie',
'pgcache.reject.uri',
'pgcache.reject.categories',
'pgcache.reject.tags',
'pgcache.reject.authors',
'pgcache.reject.custom',
'pgcache.accept.files',
'pgcache.accept.uri',
'pgcache.cache.headers',
);
// Remove empty lines, trim values, and sort.
foreach ( $settings as $setting ) {
$setting_array = $config->get_array( $setting );
if ( ! empty( $setting_array ) && is_array( $setting_array ) ) {
$values = array_filter( array_map( 'trim', $setting_array ), 'strlen' );
sort( $values );
$config->set( $setting, $values );
}
}
}
/**
* Minify tab
*/