| Server IP : 193.146.211.90 / Your IP : 10.85.6.55 Web Server : Apache System : Linux wordpress-gti-69dcdb54f7-n4wdq 6.11.8-arch1-2 #1 SMP PREEMPT_DYNAMIC Fri, 15 Nov 2024 15:35:07 +0000 x86_64 User : 1001 ( 1001) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /bitnami/wordpress/wp-content/plugins/w3-total-cache/ |
Upload File : |
<?php
/**
* File: Generic_WidgetBoldGrid_AdminActions.php
*
* @package W3TC
*/
namespace W3TC;
/**
* Class Generic_WidgetBoldGrid_AdminActions
*/
class Generic_WidgetBoldGrid_AdminActions {
/**
* Redirect user depending on if boldgrid backup is installed
*
* @return void
*/
public 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=' . rawurlencode( $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_safe_redirect( $install_url );
exit();
}
}