-
Notifications
You must be signed in to change notification settings - Fork 3.2k
register_block_type: Accept editor_script array for back-compat
#3487
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
ockham
wants to merge
27
commits into
WordPress:trunk
from
ockham:fix/register-block-type-accept-editor-script-array
+306
−4
Closed
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
4fbea48
Add unit test for register_block_type with editor_script array
ockham 8a8bfc0
Continue to support editor_script array for back-compat
ockham efbc779
Fix indentation
ockham e1d9ef1
Fix indentation, again
ockham 645683c
Remove trailing comma
ockham 8c43473
Fix unit test
ockham c4d897c
Fix getter
ockham 65eedef
Extend test coverage
ockham e3e4b50
Make array contiguous
ockham 37af4ff
Have setter override entire array rather than just first element
ockham 37b9486
Update PHPDoc
ockham 3731af8
Add REST API endpoint test coverage
ockham 1b6afb8
Add logic and test coverage to return first array item
ockham 7c1c7f7
Add isset check
ockham faa8238
Use get_registered()
ockham dfbed22
Whitespace
ockham 034a7ff
Use get_registered in other test
ockham 422744f
Indentation
ockham d8869a1
Missing whitespace in parens
ockham 45775e0
Add property_exists and is_array checks
ockham 9bc56a5
Add messages to assertions
ockham afb21ea
Assert that we have the editor_script and editor_script_handles prope…
ockham 1d5bce5
Assert that we have the editor_script and editor_script_handles prope…
ockham 203f997
Use ! empty() and array_shift()
ockham a93657f
Whitespace
ockham fe7999a
More whitespace
ockham d2788d8
Remove property assertions for virtual properties
ockham 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
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
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.