installed plugin W3 Total Cache version 2.3.2

This commit is contained in:
2023-06-05 11:23:16 +00:00
committed by Gitium
parent d9b3c97e40
commit 51ea2ff21c
2730 changed files with 334913 additions and 0 deletions

View File

@ -0,0 +1,25 @@
<?php
namespace W3TC;
class Generic_WidgetBoldGrid_AdminActions {
function w3tc_boldgrid_install() {
$plugin_file = 'boldgrid-backup/boldgrid-backup.php';
$slug = 'boldgrid-backup';
$plugins = get_plugins();
if ( isset( $plugins[$plugin_file] ) ) {
$install_url = 'plugins.php?action=activate' .
'&plugin=' . urlencode( $plugin_file ) .
'&plugin_status=all&paged=1&s&_wpnonce=' .
wp_create_nonce( 'activate-plugin_' . $plugin_file );
} else {
$install_url =
'update.php?action=install-plugin&plugin=' . $slug .
'&_wpnonce=' . wp_create_nonce( 'install-plugin_' . $slug );
}
wp_redirect( $install_url );
exit();
}
}