Make WordPress Core

Opened 5 months ago

Closed 5 months ago

Last modified 5 months ago

#59468 closed defect (bug) (fixed)

Warning: Undefined array key "attrs"

Reported by: kafleg's profile kafleg Owned by: mukesh27's profile mukesh27
Milestone: 6.4 Priority: normal
Severity: major Version: 6.4
Component: General Keywords: needs-testing has-patch
Focuses: Cc:


Found, Warning: Undefined array key "attrs" in C:\laragon\www\wp612\wp-includes\block-supports\background.php on line 51

  • Updated WordPress to 6.4 Beta 1 via WPCLI
  • TT4 theme is activated
  • PHP 8.1

Change History (7)

#1 @mukesh27
5 months ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to 6.4

Good catch, introduced in [56614] / #59357.

Ping @isabel_brison as she commit those changes.

This ticket was mentioned in PR #5326 on WordPress/wordpress-develop by @mukesh27.

5 months ago

  • Keywords has-patch added; needs-patch removed

@kafleg commented on PR #5326:

5 months ago

This PR works fine. I am not able to see the Warning now.

#4 @mukesh27
5 months ago

  • Owner set to mukesh27
  • Status changed from new to assigned

#5 @isabel_brison
5 months ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 56731:

Editor: fix undefined array key warning.

Checks if attrs array key exists before using its value.

Props mukesh27, kafleg.
Fixes #59468.

@isabel_brison commented on PR #5326:

5 months ago

Committed in r56731.

@andrewserong commented on PR #5326:

5 months ago

Thanks for fixing this up, everyone!

Note: See TracTickets for help on using tickets.