Tag: troubleshooting v.3.5

Wordpress logo

WordPress: Notice: has_cap was called with an argument that is deprecated since version 2.0!

I’ve been experimenting with LDAP and Cosign login plugins for WordPress. Most of them are out of date and are more or less incompatible with WordPress v.3.5. Usually the first error that comes up is

Notice: has_cap was called with an argument that is deprecated since version 2.0!

All this means is that instead of using the numerical role identifier argument in a function that adds a menu or submenu, the required capability should be used instead.

Continue reading