Make WordPress Core

#46857 closed defect (bug) (fixed)

Duplicate array keys in wp-includes/class-wp-editor.php

Reported by: diddledan Owned by:
Milestone: 5.2 Priority: normal
Severity: normal Version: 4.8
Component: Editor Keywords:
Focuses: Cc:


An array is instantiated on line 1024 of wp-includes/class-wp-editor.php. The array definition has a duplicate key of Insert/edit link defined on line 1148 and 1154 respectively. Their values are different indicating that it is unexpected that the conflict exists and one of the items needs renaming rather than deleting.

Change History (4)

#1 @SergeyBiryukov
16 months ago

  • Component changed from General to Editor
  • Milestone changed from Awaiting Review to 5.3

#2 follow-up: @davidbaumwald
15 months ago

Was this resolved in commit [45066]?

#3 @davidbaumwald
15 months ago

  • Keywords 2nd-opinion added

#4 in reply to: ↑ 2 @SergeyBiryukov
15 months ago

  • Keywords 2nd-opinion removed
  • Milestone changed from 5.3 to 5.2
  • Resolution set to fixed
  • Status changed from new to closed
  • Version changed from 5.2 to 4.8

Replying to davidbaumwald:

Was this resolved in commit [45066]?

Good catch, indeed it was :) Introduced in [40583].

Note: See TracTickets for help on using tickets.