HEX
Server:Apache
System:Linux localhost 5.10.0-14-amd64 #1 SMP Debian 5.10.113-1 (2022-04-29) x86_64
User:enlugo-es (10006)
PHP:7.4.33
Disabled:opcache_get_status
Upload Files
File: /var/www/vhosts/enlugo.es/httpdocs/wp-content/plugins/w3-total-cache/Extensions_AdminActions.php
<?php
namespace W3TC;



class Extensions_AdminActions {
	function w3tc_extensions_activate() {
		$config = Dispatcher::config();

		$extension = Util_Request::get_string( 'w3tc_extensions_activate' );
		$ext = Extensions_Util::get_extension( $config, $extension );

		if ( !is_null( $ext ) ) {
			if ( Extensions_Util::activate_extension( $extension, $config ) ) {
				Util_Admin::redirect_with_custom_messages2( array(
						'notes' => array( sprintf(
								__( 'Extension <strong>%s</strong> has been successfully activated.',
									'w3-total-cache' ),
								$ext['name']
							) )
					) );
				return;
			}
		}

		Util_Admin::redirect( array() );
	}
}