modified file wp-piwik

This commit is contained in:
2026-06-03 21:29:22 +00:00
committed by Gitium
parent 57bccfdbd1
commit 769efed689
2556 changed files with 368982 additions and 126264 deletions

View File

@ -0,0 +1,13 @@
<?php
// Re-write Piwik Pro configuration to default http configuration
if ($this->isConfigured() && self::$settings->getGlobalOption ( 'piwik_mode' ) == 'pro') {
self::$settings->setGlobalOption ( 'piwik_url', 'https://' . self::$settings->getGlobalOption ( 'piwik_user' ) . '.piwik.pro/');
self::$settings->setGlobalOption ( 'piwik_mode', 'http' );
}
// If post annotations are already enabled, choose all existing post types
if (self::$settings->getGlobalOption('add_post_annotations'))
self::$settings->setGlobalOption('add_post_annotations', get_post_types());
self::$settings->save ();