-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Allow the style property of block.json to be an array and add support for object-based block styles #2853
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
Closed
adamziel
wants to merge
27
commits into
WordPress:trunk
from
adamziel:allow-style-arrays-in-block-json
Closed
Allow the style property of block.json to be an array and add support for object-based block styles #2853
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
00bfe03
Allow the style property of block.json to be an array
adamziel 92f6635
Refactor the other use of _register_single_block_style_handle
adamziel 277603c
Filter out arrays of styles before enqueuing them in class-wp-block.php
adamziel 6eb4626
Do not flatten the styles array in block_type_metadata filter
adamziel 2acd65b
Clarify the docstring
adamziel 127aac5
Clarify the intention of not processing arrays
adamziel b58f2e7
Clarify the intention
adamziel 14116bb
Further clarify the intention
adamziel 61e2828
Handle style arrays in block-editor.php
adamziel 4b668b0
Handle style arrays in script-loader.php
adamziel eeb8ede
Adjust code style to avoid requesting block name in the test_handle_p…
adamziel 37113d9
Do not assume 'file' is an exisitng key
adamziel d70e683
Add comments, rename _register_single_block_style_handle to register_…
adamziel e034805
Register all string style handles, not just the first one
adamziel 7e086ef
Add array sypport to WP_Block_Type and WP_Rest_Block_Types_Controller
adamziel 438a35b
Add support for editor_styles
adamziel e4fc856
Delete _wp_multiple_block_styles now that multiple styles are handled
adamziel 3bdb544
Normalize styles format to a list
adamziel da476d2
Add docstring to _wp_normalize_block_styles_from_mixed_format_to_array
adamziel ce39fb7
Move the argument normalization inside of WP_Block_Type class
adamziel c9f0d13
Support array-based styles in register_block_style_handle and add uni…
adamziel 81f13cb
Add an empty _wp_multiple_block_styles function
adamziel 994938f
Add debug statement to see the provlem in the CI
adamziel c44ba77
Update docs
adamziel b8ab9d0
Fix last test failures
adamziel 124b4ad
Add @since to normalize_block_styles_from_mixed_format_to_array
adamziel 2c396ae
Merge branch 'trunk' into allow-style-arrays-in-block-json
adamziel 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
Add docstring to _wp_normalize_block_styles_from_mixed_format_to_array
- Loading branch information
commit da476d2f6bbc7b65d6f3b51d887c1cbe553dfc40
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
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.