Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move tabindex from PHP notice output to JS notice handling #5233

Closed
wants to merge 1 commit into from
Closed

Move tabindex from PHP notice output to JS notice handling #5233

wants to merge 1 commit into from

Conversation

joedolson
Copy link
Contributor

@joedolson joedolson commented Sep 17, 2023

Moves tabindex from the PHP output of notices to the JS handler for that notice. Allows us to avoid adding tabindex to the globally allowed attributes in KSES.

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


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.

@joedolson
Copy link
Contributor Author

Both changes are tested and work the same as the original code as best as I can tell. These are the only instances I found where tabindex was set directly in the source.

Copy link
Contributor

@costdev costdev left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @joedolson! I tested these locally too and they worked well.

@joedolson
Copy link
Contributor Author

in r56602

@joedolson joedolson closed this Sep 17, 2023
@joedolson joedolson deleted the 57791-tabindex branch September 17, 2023 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants