Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

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

View patch.diff
1 2 3 4 5 6 7 8 9 10 11 12 13
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.