WordPress Depreciation Errors

I keep getting notices of errors and warnings for depreciated calls in plugins.  I’m creating a resource here for the fixes for these niggling little things that are driving me so crazy.

has_cap was called with an argument that is deprecated

The correction for this error is to adjust the call to an appropriate user role.  I’ll update the following table as I run into things.

 

Old Level/Capability New Role
0 Subscriber
1 Contributor
2 Author
3 Editor
4 Editor
5 Editor
6 Editor
7 Editor
8 Administrator
9 Administrator
10 Administrator
publish_posts Editor
Advertisements

~ by Liz on July 1, 2012.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: