[Plugin: WordPress Admin UI Reference Guide] has_cap() error
-
When WP_DEBUG is set, version 0.5.2 of plugin causes an error :
“Notice: has_cap was called with an argument that is deprecated since version 2.0!”
This is caused by parametercapability
of functionadd_submenu_page()
.An easy way to solve it is to replace number
7
bymanage_options
(or other setting) on line 47 in the main plugin file.Please solve that error on next release.
More infos:
http://tumbledesign.com/fix-notice-has_cap-was-called-with-an-argument-that-is-deprecated-since-version-2-0-in-wordpress/
http://codex.wordpress.org/Roles_and_Capabilitieshttp://wordpress.org/extend/plugins/wordpress-admin-ui-reference-guide/
- The topic ‘[Plugin: WordPress Admin UI Reference Guide] has_cap() error’ is closed to new replies.