Quantcast
Channel: dev feedback – WordPress.org Forums
Viewing all articles
Browse latest Browse all 20

Fix for PHP notice

0
0

Hi,

When I run this plugin I see an error:

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 is caused by line 70 in gad-admin-options.php, which specifies a user level 8 when adding the options page. User level 8 is equivalent to an administrator, so replacing 8 with manage_options will work just as well.

Here’s a gist with a patch: https://gist.github.com/simonwheatley/5850804

Hope this helps.

Cheers,

Simon

https://wordpress.org/extend/plugins/google-analytics-dashboard/


Viewing all articles
Browse latest Browse all 20

Latest Images

Trending Articles





Latest Images