#30821 closed defect (bug) (duplicate)
Undefined offset: 0 in capabilities.php#L1119 - map_meta_cap()
Reported by: | Ninos Ego | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.2 |
Component: | Role/Capability | Keywords: | has-patch |
Focuses: | Cc: |
Description
There should be a check for the $args[0] variable. Attached a patch...
Attachments (1)
Change History (6)
Note: See
TracTickets for help on using
tickets.
This could potentially hide developer/coding errors, as the capabilities to which you want to add those checks should always be checked with a corresponding object or ID.
Where exactly are you getting the error that you mention in the title of the ticket?