Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Google Analytics Dashboard patch… Fix: Notice: has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /srv/www/wordpress-default/wp-includes/functions.php on line 2923
diff --git a/gad-admin-options.php b/gad-admin-options.php
index 09c3f2f..e6afefb 100644
--- a/gad-admin-options.php
+++ b/gad-admin-options.php
@@ -67,7 +67,7 @@ class GADAdminOptions
function admin_plugin_menu()
{
- add_options_page(__('Google Analytics Dashboard Options'), __('Google Analytics Dashboard'), 8, __FILE__, array(&$this, 'admin_plugin_options'));
+ add_options_page(__('Google Analytics Dashboard Options'), __('Google Analytics Dashboard'), 'manage_options', __FILE__, array(&$this, 'admin_plugin_options'));
}
function admin_plugin_options($info_message = '')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.