Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#59468 closed defect (bug) (fixed)

Warning: Undefined array key "attrs"

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

Description

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
3 years ago

  • Keywords needs-patch added
  • Milestone Awaiting Review → 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.


3 years ago
#2

  • Keywords has-patch added; needs-patch removed

​@kafleg commented on ​PR #5326:


3 years ago
#3

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

#4 @mukesh27
3 years ago

  • Owner set to mukesh27
  • Status new → assigned

#5 @isabel_brison
3 years ago

  • Resolution → fixed
  • Status assigned → 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:


3 years ago
#6

Committed in r56731.

​@andrewserong commented on ​PR #5326:


3 years ago
#7

Thanks for fixing this up, everyone!

Note: See TracTickets for help on using tickets.