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

fix: incorrect condiional check in Gutenberg_Token_Map_6_7::read_small_token() #68410

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

justlevine
Copy link
Contributor

What?

This PR fixes an issue in Gutenberg_Token_Map_6_7::read_small_token() where a misplaced ) results in a strtoupper( {... text check logic ... }, causing the conditional to incorrectly handle case-insensitive checks.

Why?

While this issue was surfaced by PHPStan (via #66693) it can be remediated independently as part of #66598

How?

Testing Instructions

Testing Instructions for Keyboard

Screenshots or screencast

Before After

Copy link

github-actions bot commented Dec 30, 2024

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: justlevine <[email protected]>
Co-authored-by: carolinan <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@carolinan carolinan added the [Type] Code Quality Issues or PRs that relate to code quality label Jan 27, 2025
@carolinan
Copy link
Contributor

@carolinan carolinan added Needs PHP backport Needs PHP backport to Core Needs Testing Needs further testing to be confirmed. labels Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs PHP backport Needs PHP backport to Core Needs Testing Needs further testing to be confirmed. [Type] Code Quality Issues or PRs that relate to code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants