Make WordPress Core

Opened 17 months ago

Closed 17 months ago

Last modified 17 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:

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
17 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.


17 months ago
#2

  • Keywords has-patch added; needs-patch removed

@kafleg commented on PR #5326:


17 months ago
#3

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

#4 @mukesh27
17 months ago

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

#5 @isabel_brison
17 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:


17 months ago
#6

Committed in r56731.

@andrewserong commented on PR #5326:


17 months ago
#7

Thanks for fixing this up, everyone!

Note: See TracTickets for help on using tickets.