WordPress.org

Make WordPress Core

Opened 4 years ago

Last modified 5 months ago

#36556 new defect (bug)

has_cap was called with an argument

Reported by: Asif2BD Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.4.2
Component: Users Keywords:
Focuses: Cc:
PR Number:

Description

I am seeing this error message in one of the site

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 ~/wp-includes/functions.php on line 3737

I understand it's probably because of one of the plugin or theme probably called a numeric user level instead of a capability name. But maybe we could create a backfill kind of approach here.

Change History (1)

#1 @SergeyBiryukov
4 years ago

  • Component changed from General to Users
Note: See TracTickets for help on using tickets.