Update version requirements to WP 6.8 / PHP 7.4#31
Open
github-actions[bot] wants to merge 1 commit into
Open
Conversation
faisuc
pushed a commit
that referenced
this pull request
Jul 4, 2026
…ocommerce#64633) fix: customers report cell renderer crashes on some country values The customers analytics screen could fail to render with React error #31 when a customer record's country field happened to coerce into a value that hits an Array index or prototype name (e.g. "0", "find"). The cell renderer was treating the countries data store array as a string-keyed map, so countries["0"] returned the first country object instead of undefined, which React then refused to render as a child of the cell's screen-reader span. Replace the array-as-map lookup with Array#find by code, and decode HTML entities on the resolved name (the legacy wcSettings.countries map was already decoded; the REST data/countries response is not). Add a Jest test covering the regression and the entity-decoding contract. Fixes woocommerce#64555
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR automatically updates the version requirements in
plugins/woocommerce/woocommerce.phpandplugins/woocommerce/readme.txt:Changes
Auto-generated by the
maintenance-update-version-requirements.ymlworkflow.