-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Fix block registration from metadata #3501
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
Closed
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
2a31ff4
pass $args earlier
aristath 7daab55
Add empty string as default value for $file_or_folder
aristath 51f6083
$metadata is an array
aristath ef39e83
fix for translations conditions
aristath 392b8ae
Return false if name is not defined
aristath b236265
removed default value
aristath 92ac48a
simplify condition
aristath c5edb5b
fix for core blocks caches
aristath b5ecea7
move render_callback calculations before parsing the $args
aristath 000ef58
more WIP
aristath 35e526e
more render callback a bit earlier
aristath 14cad2c
tweak the check
aristath 6d426b5
minor tweak
aristath d2f4977
Add PHPUnit tests & fix discovered bug
aristath 39c2c0d
Update src/wp-includes/blocks.php
aristath 536666e
docs fix (copy/paste error)
aristath 9400e13
Merge remote-tracking branch 'aristath/fix/block-registration' into f…
aristath 45d3229
Update tests/phpunit/tests/blocks/register.php
aristath 910df65
Update tests/phpunit/tests/blocks/register.php
aristath fe37d14
copy/paste
aristath b0913e1
wording improvement
aristath 7df228e
Add messages to tests
aristath 927a6a4
typo fix
aristath 8e3a1e7
Merge branch 'trunk' into fix/block-registration
aristath d5dfea3
fix failing test from merge conflict
aristath a45eac6
Merge branch 'trunk' into fix/block-registration
aristath d1d47bc
Add more tests
aristath eccbf70
Merge branch 'trunk' into fix/block-registration
aristath fd2f493
Merge branch 'trunk' into fix/block-registration
aristath 614a522
Update tests/phpunit/tests/blocks/register.php
aristath 0ffe03a
Merge remote-tracking branch 'aristath/fix/block-registration' into f…
aristath 69c8372
Update tests/phpunit/tests/blocks/register.php
aristath 75e814b
Merge remote-tracking branch 'aristath/fix/block-registration' into f…
aristath 3b5fb15
Move dataProvider function
aristath 4a6136b
Update tests/phpunit/tests/blocks/register.php
aristath 9174edd
Merge branch 'trunk' into fix/block-registration
aristath 2c32ffa
Merge branch 'trunk' into fix/block-registration
aristath 47586a9
Don't check if file exists for core blocks
aristath 280992d
resolve rebase conflicts
aristath a898362
Update src/wp-includes/blocks.php
aristath 551f3f4
Merge branch 'trunk' into fix/block-registration
aristath 6ab5c1f
Merge branch 'trunk' into fix/block-registration
aristath 50f0346
Merge branch 'trunk' into fix/block-registration
aristath 3f96fd8
Merge branch 'trunk' into fix/block-registration
spacedmonkey f2feb9f
Merge branch 'trunk' into fix/block-registration
aristath 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
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.