updated plugin W3 Total Cache
version 2.3.3
This commit is contained in:
@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user