Created
June 24, 2013 15:16
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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