Skip to content

Fix: Undefined array key attrs warning.#5326

Closed
mukeshpanchal27 wants to merge 1 commit intoWordPress:trunkfrom
mukeshpanchal27:fix/59468
Closed

Fix: Undefined array key attrs warning.#5326
mukeshpanchal27 wants to merge 1 commit intoWordPress:trunkfrom
mukeshpanchal27:fix/59468

Conversation

@mukeshpanchal27
Copy link
Copy Markdown
Member

Trac ticket: https://core.trac.wordpress.org/ticket/59468


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

@kafleg
Copy link
Copy Markdown
Member

kafleg commented Sep 27, 2023

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

@mukeshpanchal27 mukeshpanchal27 marked this pull request as ready for review September 27, 2023 04:52
Copy link
Copy Markdown
Contributor

@tellthemachines tellthemachines left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure how to reproduce the original issue, but code change LGTM! It's a good idea as a general principle to expect array keys to not exist 😄

@tellthemachines
Copy link
Copy Markdown
Contributor

Committed in r56731.

@andrewserong
Copy link
Copy Markdown
Contributor

Thanks for fixing this up, everyone!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants