[theme-reviewers] Need some help with a review
Bavota San
c at bavotasan.com
Fri Jul 9 15:37:05 UTC 2010
That is referring to function that is adding the administration menu.
http://codex.wordpress.org/Adding_Administration_Menus
They are using the deprecated level code instead of the something like "manage_options" for the $capability.
So something that should look like this:
add_options_page('My Plugin Options', 'My Plugin', 'manage_options', 'my-unique-identifier', 'my_plugin_options');
Actually looks like this:
add_options_page('My Plugin Options', 'My Plugin', 10, 'my-unique-identifier', 'my_plugin_options');
c.bavota
Web Programmer
c at bavotasan.com
http://bavotasan.com
http://themes.bavotasan.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Logo-Bavotasan.png
Type: image/png
Size: 6061 bytes
Desc: not available
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20100709/c140aa03/attachment.png>
-------------- next part --------------
Become an Affiliate and earn 40% commission on sale referrals
http://themes.bavotasan.com/affiliates
On 2010-07-08, at 6:57 PM, Chris wrote:
> Hi,
>
> currently I?m reviewing ZenLite 3.0 - http://themes.trac.wordpress.org/ticket/190
>
> I?m getting the following notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in C:\xampp\htdocs\theme-review\wp-includes\functions.php on line 3321
>
> The theme itself doesn?t call ?has_cap?, so it seems to be something else that causes this notice. Could you please push me into the right direction, what to look for?
>
> The other notices are undefined variables.
>
> Thanks for your help!
>
> Chris
>
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
More information about the theme-reviewers
mailing list