updated plugin W3 Total Cache version 2.5.0

This commit is contained in:
2023-10-22 22:21:26 +00:00
committed by Gitium
parent 2f6b5b6047
commit 9e3fa792d7
255 changed files with 10113 additions and 23010 deletions

View File

@ -159,7 +159,7 @@ class Extension_CloudFlare_Plugin_Admin {
$menu_items['20810.cloudflare'] = array(
'id' => 'w3tc_flush_cloudflare',
'parent' => 'w3tc_flush',
'title' => __( 'CloudFlare: All', 'w3-total-cache' ),
'title' => __( 'CloudFlare', 'w3-total-cache' ),
'href' => wp_nonce_url( admin_url( 'admin.php?page=w3tc_dashboard&w3tc_cloudflare_flush' ), 'w3tc' ),
);
@ -294,12 +294,12 @@ class Extension_CloudFlare_Plugin_Admin {
$can_empty_file = $modules->can_empty_file();
$can_empty_varnish = $modules->can_empty_varnish();
$actions[] = __( ' or ', 'w3-total-cache' ) . '<input id="flush_all_except_cf" class="button" type="submit"
name="w3tc_cloudflare_flush_all_except_cf" value="' . __( 'empty all caches except CloudFlare', 'w3-total-cache' ) . '"' .
(
( ! $can_empty_memcache && ! $can_empty_opcode && ! $can_empty_file && ! esc_attr( $can_empty_varnish ) ) ?
'disabled="disabled"' : ''
) . '> at once';
$actions[] = sprintf(
'<input type="submit" class="dropdown-item" name="w3tc_cloudflare_flush_all_except_cf" value="%1$s"%2$s>',
esc_attr__( 'Empty All Caches Except CloudFlare', 'w3-total-cache' ),
( ! $can_empty_memcache && ! $can_empty_opcode && ! $can_empty_file && ! $can_empty_varnish )
? ' disabled="disabled"' : ''
);
return $actions;
}