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