Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#52216 closed defect (bug) (duplicate)

WP_Debug PHP Notice if optional argument isn't passed to map_meta_cap()

Reported by: a223123131's profile a223123131 Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.6
Component: Users Keywords:
Focuses: Cc:

Description

I get this n my debug log. Using lates WP and PHP 7.4

PHP Notice: Undefined offset: 0 in /wordpress/wp-includes/capabilities.php on line 143

Change History (3)

#1 @SergeyBiryukov
3 years ago

  • Component changed from General to Users
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi there, welcome to WordPress Trac!

Thanks for the report, we're already tracking this issue in #44591.

#2 @SergeyBiryukov
3 years ago

  • Summary changed from WP_Debug PHP Notice to WP_Debug PHP Notice if optional argument isn't passed to map_meta_cap()

#3 @a223123131
3 years ago

Oh, sorry for duplicating... I'm new here.

Note: See TracTickets for help on using tickets.