laipower/wp-content/plugins/wp-piwik/update/90001.php
2020-04-07 13:03:04 +00:00

9 lines
444 B
PHP

<?php
$aryWPMUConfig = get_site_option ( 'wpmu-piwik_global-settings', false );
if (self::$settings->checkNetworkActivation () && $aryWPMUConfig) {
foreach ( $aryWPMUConfig as $key => $value )
self::$settings->setGlobalOption ( $key, $value );
delete_site_option ( 'wpmu-piwik_global-settings' );
self::$settings->setGlobalOption ( 'auto_site_config', true );
} else
self::$settings->setGlobalOption ( 'auto_site_config', false );