Skip to content

Instantly share code, notes, and snippets.

@simonwheatley
Created June 24, 2013 15:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save simonwheatley/5850804 to your computer and use it in GitHub Desktop.
Save simonwheatley/5850804 to your computer and use it in GitHub Desktop.
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