Repository navigation
Colour: Add a PHP helper for block support classes and styles #84206
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
Merged
aaronrobertshaw
merged 16 commits into
trunk
from
update/color-classes-and-styles-php-helper
Nov 4, 2026
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
7eb8ce2
Colour: Add a PHP helper for block support classes and styles
aaronrobertshaw 1f4d5e9
Address review feedback
aaronrobertshaw c741b32
Add backport changelog entry
aaronrobertshaw 827fc43
Filter by removing values before calling the helper
aaronrobertshaw c74b3e4
Use named support and skip variables, and filter the attributes in place
aaronrobertshaw a3b9ae9
Fall back to the custom color when a preset attribute is null or empty
aaronrobertshaw a5b5beb
Expect the custom color for a null preset, and drop the style engine …
aaronrobertshaw 440a700
Drop the no color and preset wins Calendar test cases
aaronrobertshaw 295b8de
Explain why Calendar filters its color attributes
aaronrobertshaw 1df222f
Match JS truthiness for color preset attributes
aaronrobertshaw 977d336
Accept only non-empty string color preset slugs
aaronrobertshaw 43197fd
Move the color classes and styles helper to WordPress 7.3
aaronrobertshaw fe1e735
PHPStan: Baseline the colour helper until Core has it
aaronrobertshaw 09c0e68
PHPStan: Generate the WordPress stubs from the core backport
westonruter 99f3a1e
Revert the WordPress stubs pin to Core PR 14094
aaronrobertshaw 8130a1d
PHPStan: Ignore the missing wp_get_color_classes_and_styles() functio…
aaronrobertshaw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| https://github.com/WordPress/wordpress-develop/pull/14094 | ||
|
|
||
| * https://github.com/WordPress/gutenberg/pull/84205 | ||
| * https://github.com/WordPress/gutenberg/pull/84206 | ||
| * https://github.com/WordPress/gutenberg/pull/84207 | ||
| * https://github.com/WordPress/gutenberg/pull/84208 | ||
| * https://github.com/WordPress/gutenberg/pull/84209 | ||
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.