-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Add logo block #1275
Add logo block #1275
Conversation
Can we enable the site-logo block in the same patch and add the required code? (I think to do so, there's a couple PHP files/webpack config to change and run |
Take the PostAuthor block as an example: and |
Thank you @youknowriad 👍 |
@aristath looks like there are some failing phpunit tests here, any idea? |
Fixed the failing tests |
At a minimum the name for the theme mods option in the REST API should just be Theme mods should either be added to the themes endpoint, or more ideally have an endpoint to interact with registered settings in the customizer. This is not suitable to be shipped in Core. If you aren't interested in making those endpoints, then I'd recommend looking at calling the customizer admin-ajax API. Ex: https://github.com/WordPress/gutenberg/blob/854a31f3edee98e8b16ef5f2d32abcdaa8b395b0/packages/edit-navigation/src/store/actions.js#L195 This also seems to have a different change of adding the |
The logo block was updated in WordPress/gutenberg#32229. Once a new minor Gutenberg release goes out I will update this PR with the new implementation ( |
For the sake of this PR I updated |
Packages are now up to date on trunk, would you mind refreshing this PR? |
The block seems to work in my testing. Any idea about the failing tests? Is it still the action unhooking thing? |
looking into the failing tests now 👍 |
All tests now pass. I needed to tweak the sync hook a bit, and a PR backporting these changes to Gutenberg was submitted in WordPress/gutenberg#32370 |
Ok makes sense. I guess this means we should wait for the next package update to land this PR to avoid having |
Updated, should be OK to merge now 👍 |
committed in https://core.trac.wordpress.org/changeset/51091 |
Trac ticket: https://core.trac.wordpress.org/ticket/53247
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.