laipower/wp-content/plugins/wp-piwik/update/90001.php

9 lines
436 B
PHP
Raw Normal View History

<?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
2020-04-07 13:03:04 +00:00
self::$settings->setGlobalOption ( 'auto_site_config', false );