Skip to content

Conversation

@dmsnell
Copy link
Member

@dmsnell dmsnell commented Sep 10, 2025

Trac ticket: Core-59622

This is a backport of WordPress/wordpress-develop#5486, which introduces an additional check for non-string values of the class attribute when rendering background support for blocks.

This check avoids issuing a warning when a boolean true value of the attribute is passed on to str_ends_with().

@github-actions
Copy link

github-actions bot commented Sep 10, 2025

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: dmsnell <[email protected]>
Co-authored-by: Mamaduka <[email protected]>

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

@dmsnell dmsnell force-pushed the backport/block-supports-background-non-string-attribute-check branch 2 times, most recently from bd1ecb6 to d994faf Compare September 10, 2025 20:08
dmsnell added a commit that referenced this pull request Sep 10, 2025
Trac ticket: Core-59622

This is a backport of WordPress/wordpress-develop#5486, which
introduces an additional check for non-string values of the
`class` attribute when rendering background support for blocks.

This check avoids issuing a warning when a boolean `true` value
of the attribute is passed on to `str_ends_with()`.

Co-authored-by: Tonya Mork <[email protected]>
Co-authored-by: Peter Wilson <[email protected]>
Co-authored-by: Jon Surrell <[email protected]>
Github-PR: 71594
Github-PR-URL: #71594
Branch-name: backport/block-supports-background-non-string-attribute-check
dmsnell added a commit that referenced this pull request Sep 10, 2025
Trac ticket: Core-59622

This is a backport of WordPress/wordpress-develop#5486, which
introduces an additional check for non-string values of the
`class` attribute when rendering background support for blocks.

This check avoids issuing a warning when a boolean `true` value
of the attribute is passed on to `str_ends_with()`.

Co-authored-by: Tonya Mork <[email protected]>
Co-authored-by: Peter Wilson <[email protected]>
Co-authored-by: Jon Surrell <[email protected]>
Github-PR: 71594
Github-PR-URL: #71594
Branch-name: backport/block-supports-background-non-string-attribute-check
@dmsnell dmsnell force-pushed the backport/block-supports-background-non-string-attribute-check branch from d994faf to 8ca7cfa Compare September 10, 2025 20:20
@dmsnell dmsnell added the Backport from WordPress Core Pull request that needs to be backported to a Gutenberg release from WordPress Core label Sep 10, 2025
@github-actions
Copy link

github-actions bot commented Sep 10, 2025

Flaky tests detected in 54564ab.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/17633178357
📝 Reported issues:

Copy link
Member

@Mamaduka Mamaduka left a comment

Choose a reason for hiding this comment

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

Thanks, @dmsnell!

dmsnell added a commit that referenced this pull request Sep 11, 2025
Trac ticket: Core-59622

This is a backport of WordPress/wordpress-develop#5486, which
introduces an additional check for non-string values of the
`class` attribute when rendering background support for blocks.

This check avoids issuing a warning when a boolean `true` value
of the attribute is passed on to `str_ends_with()`.

Co-authored-by: Tonya Mork <[email protected]>
Co-authored-by: Peter Wilson <[email protected]>
Co-authored-by: Jon Surrell <[email protected]>
Github-PR: 71594
Github-PR-URL: #71594
Branch-name: backport/block-supports-background-non-string-attribute-check
@dmsnell dmsnell force-pushed the backport/block-supports-background-non-string-attribute-check branch from 8ca7cfa to 2ef54b7 Compare September 11, 2025 03:26
Trac ticket: Core-59622

This is a backport of WordPress/wordpress-develop#5486, which
introduces an additional check for non-string values of the
`class` attribute when rendering background support for blocks.

This check avoids issuing a warning when a boolean `true` value
of the attribute is passed on to `str_ends_with()`.

Co-authored-by: Tonya Mork <[email protected]>
Co-authored-by: Peter Wilson <[email protected]>
Co-authored-by: Jon Surrell <[email protected]>
Co-authored-by: George Mamadashvili <[email protected]>
Github-PR: 71594
Github-PR-URL: #71594
Branch-name: backport/block-supports-background-non-string-attribute-check
Trac-ticket: 59622
@dmsnell dmsnell force-pushed the backport/block-supports-background-non-string-attribute-check branch from 2ef54b7 to 54564ab Compare September 11, 2025 03:30
@dmsnell dmsnell merged commit 54564ab into trunk Sep 11, 2025
68 checks passed
@dmsnell dmsnell deleted the backport/block-supports-background-non-string-attribute-check branch September 11, 2025 04:04
adamsilverstein pushed a commit to adamsilverstein/gutenberg that referenced this pull request Sep 11, 2025
Trac ticket: Core-59622

This is a backport of WordPress/wordpress-develop#5486, which
introduces an additional check for non-string values of the
`class` attribute when rendering background support for blocks.

This check avoids issuing a warning when a boolean `true` value
of the attribute is passed on to `str_ends_with()`.

Co-authored-by: Tonya Mork <[email protected]>
Co-authored-by: Peter Wilson <[email protected]>
Co-authored-by: Jon Surrell <[email protected]>
Co-authored-by: George Mamadashvili <[email protected]>
Github-PR: 71594
Github-PR-URL: WordPress#71594
Branch-name: backport/block-supports-background-non-string-attribute-check
Trac-ticket: 59622
peterwilsoncc pushed a commit to peterwilsoncc/gutenberg-build that referenced this pull request Sep 11, 2025
Trac ticket: Core-59622

This is a backport of WordPress/wordpress-develop#5486, which
introduces an additional check for non-string values of the
`class` attribute when rendering background support for blocks.

This check avoids issuing a warning when a boolean `true` value
of the attribute is passed on to `str_ends_with()`.

Co-authored-by: Tonya Mork <[email protected]>
Co-authored-by: Peter Wilson <[email protected]>
Co-authored-by: Jon Surrell <[email protected]>
Co-authored-by: George Mamadashvili <[email protected]>
Github-PR: 71594
Github-PR-URL: WordPress/gutenberg#71594
Branch-name: backport/block-supports-background-non-string-attribute-check
Trac-ticket: 59622

Source: WordPress/gutenberg@54564ab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backport from WordPress Core Pull request that needs to be backported to a Gutenberg release from WordPress Core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants