Fix for dashboard summary widget with multisite
-
The dashboard summary widget uses a relative link to each page under ‘Top Pages’. These links don’t work if the wordpress admin isn’t accessed at the same base url as the site.
To correct this I changed line 541 on google-analytics-summary-widget.php to:
$return .= '<li><a href="' . get_home_url() . esc_url($stat[1]) . '">' . esc_html($stat[0]) . '</a> - ' . number_format($stat[2]) . ' ' . __('Views', 'google-analyticator') . '</li>';
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Fix for dashboard summary widget with multisite’ is closed to new replies.