#55505 closed task (blessed) (fixed)
Update @wordpress packages and backport changes from Gutenberg plugin into Core
Reported by: | hellofromTonya | Owned by: | gziolo |
---|---|---|---|
Milestone: | 6.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Editor | Keywords: | has-patch has-unit-tests |
Focuses: | Cc: |
Description
- Update
@wordpress
packages with packages published from Gutenberg. - Backport PHP changes from Gutenberg's
lib/compat/wordpress-6.0/
files.
Change History (134)
This ticket was mentioned in PR #2488 on WordPress/wordpress-develop by hellofromtonya.
3 years ago
#1
- Keywords has-patch added
3 years ago
#3
I also see files listed in the description that @jsnajdr added, so let's keep him in the loop.
ntsekouras commented on PR #2488:
3 years ago
#4
@ntsekouras can you help with backporting this functionality?
Looking now. Thanks for the ping!
This ticket was mentioned in PR #2503 on WordPress/wordpress-develop by youknowriad.
3 years ago
#5
- Keywords has-unit-tests added
This PR backports the global styles variations endpoint changes from the Gutenberg plugin.
Trac ticket: https://core.trac.wordpress.org/ticket/55505
ntsekouras commented on PR #2488:
3 years ago
#6
The sanitization fixes have been merged in GB, so we should update this PR with the changes from that one.
This ticket was mentioned in PR #2500 on WordPress/wordpress-develop by ramonjd.
3 years ago
#7
🚧 Adding this diff pending discussion. Trac ticket to come.
Gutenberg plugin migration to WordPress 6.0 also being tracked in https://github.com/WordPress/gutenberg/issues/39889.
This diff migrates block support spacing, border, color, dimensions, elements and typography and associated tests from Gutenberg 12.9.0 to WordPress 6.0
The goal is to include the latest plugin, while skipping the Style Engine integration, which only features in spacing.php
. The Style Engine class doesn't bring any new functionality - it's more of a first iteration in a set of long-term changes.
In summary:
- Include individual serialization changes from https://github.com/WordPress/gutenberg/commit/6de16981c7fef3db7cc4a9d6cfcb0ad85c916c62
- Skip Style Engine integration from https://github.com/WordPress/gutenberg/commit/44925a947fde29feaab512e0adf4291272209d59`
Trac ticket: https://core.trac.wordpress.org/ticket/55505
3 years ago
#8
We already have a Trac ticket https://core.trac.wordpress.org/ticket/55505 that @hellofromtonya opened for all backporting necessary for the Gutenberg plugin.
youknowriad commented on PR #2503:
3 years ago
#10
I think I managed to fix the tests, let's see what CI says.
hellofromtonya commented on PR #2488:
3 years ago
#11
The sanitization https://github.com/WordPress/gutenberg/pull/39970 in GB, so we should update this PR with the changes from that one.
Thanks! I'll grab those changes and apply them to this PR .. shortly.
oandregal commented on PR #2503:
3 years ago
#12
@youknowriad it looks like the only failing test is WP_Test_REST_Schema_Initialization::test_expected_routes_in_schema
, which is missing one of the global styles routes.
youknowriad commented on PR #2503:
3 years ago
#13
I guess we need to regenerate that REST API fixtures file, I forgot how to do that. I can the entry manually though.
oandregal commented on PR #2503:
3 years ago
#14
This is working as expected for me.
This is what I've done to test:
Created a styles
folder within src/wp-content/themes/twentytwentytwo
with two files.
bluish.json
whose content was:
{{{json
{
"version": 2,
"title": "Blue style",
"styles": {
"color": {
"background": "blue",
"text": "white"
}
},
"settings": {
"color": {
"palette": [
{ "slug": "blue", "name": "Blue", "color": "blue" }
]
}
}
}
}}}
redish.json
whose content was:
{{{json
{
"version": 2,
"title": "Red style",
"styles": {
"color": {
"background": "red",
"text": "white"
}
},
"settings": {
"color": {
"palette": [
{ "slug": "red", "name": "Red", "color": "red" }
]
}
}
}
}}}
Then, I opened the site editor and, in the console, executed this command: wp.apiFetch({path: '/wp/v2/global-styles/themes/twentytwentytwo/variations', method: 'GET'})
. Once the request is resolved I saw the content of the style variations.
I've also tested with the existing TwentyTwentyTwo theme with no styles
folder and also works fine (the endpoint returns 0 style variations).
aaronrobertshaw commented on PR #2500:
3 years ago
#15
The block support serialization changes included in this PR so far (all except layout.php) look good and cover those introduced in https://github.com/WordPress/gutenberg/pull/36293.
I'm happy to review again once the layout.php updates are also added.
3 years ago
#16
I'm happy to review again once the layout.php updates are also added.
This patch looks big already. Can we land that part separately? I could do some additional review pass in 1-2 hours and commit changes if no blockers discovered.
youknowriad commented on PR #2503:
3 years ago
#17
@gziolo Should I go ahead and commit this one?
3 years ago
#18
@gziolo Should I go ahead and commit this one?
That would be fantastic, thank you 🙇🏻
youknowriad commented on PR #2503:
3 years ago
#20
committed in https://core.trac.wordpress.org/changeset/53072
This ticket was mentioned in PR #2516 on WordPress/wordpress-develop by youknowriad.
3 years ago
#21
I compared the global styles controller between Gutenberg and Core, and there's just this small difference that's left.
Trac ticket: https://core.trac.wordpress.org/ticket/55505
This ticket was mentioned in PR #2518 on WordPress/wordpress-develop by ramonjd.
3 years ago
#22
⚠️ Depends on Trac ticket: https://core.trac.wordpress.org/ticket/55505 which includes the lib/block-supports/utils.php
file and the wp_should_skip_block_supports_serialization()
function.
Gutenberg plugin migration to WordPress 6.0 also being tracked in https://github.com/WordPress/gutenberg/issues/39889.
This diff migrates block support layout (lib/block-supports/layout.php
) from Gutenberg 13 to WordPress 6.0.
Trac ticket: https://core.trac.wordpress.org/ticket/55505
3 years ago
#23
This patch looks big already. Can we land that part separately? I could do some additional review pass in 1-2 hours and commit changes if no blockers discovered.
Layout over here: https://github.com/WordPress/wordpress-develop/pull/2518
youknowriad commented on PR #2516:
3 years ago
#25
Committed
3 years ago
#27
Committed with https://core.trac.wordpress.org/changeset/53076.
3 years ago
#28
wp_should_skip_block_supports_serialization()
is already present in WordPress core. Do we have any unit tests that cover the updated functionality?
youknowriad commented on PR #2518:
3 years ago
#29
We do have unit tests that cover the image block related filter. They were added here https://github.com/WordPress/gutenberg/pull/39330
3 years ago
#30
We do have unit tests that cover the image block related filter. They were added here https://github.com/WordPress/gutenberg/pull/39330
Thanks for the tip off. I will pull the tests over in this PR 🙇
This ticket was mentioned in PR #2522 on WordPress/wordpress-develop by ramonjd.
3 years ago
#31
In https://github.com/WordPress/wordpress-develop/pull/2500 we deleted private block supports functions that are no longer used in WordPress 6.0.0.
This PR reinstates them and add deprecation notices as recommended by @peterwilsoncc over in https://github.com/WordPress/wordpress-develop/pull/2500#discussion_r843356361
Trac ticket: https://core.trac.wordpress.org/ticket/55505
peterwilsoncc commented on PR #2522:
3 years ago
#32
@ramonjd Are you able to move these to src/wp-includes/deprecated.php
?
If there are replacement functions, then you can add the new function name as a third parameter to _deprecated_function()
.
3 years ago
#33
Are you able to move these to src/wp-includes/deprecated.php?
Yes! Will do. Thanks for letting me know. I wasn't aware of that directory.
peterwilsoncc commented on PR #2488:
3 years ago
#34
Code changes look good pending fixes to the tests.
Let's keep the existing blocks in the test suite (ie with tagId, etc) and modify the expected result. The new format can go in as additional tests.
(I say this in the full knowledge it might be part of your own plan)
peterwilsoncc commented on PR #2522:
3 years ago
#36
Committed in https://core.trac.wordpress.org/changeset/53082
3 years ago
#38
I refactored one of the tests to use the data provider and included code comments in 293a355.
3 years ago
#40
Changes committed in https://core.trac.wordpress.org/changeset/53085.
This ticket was mentioned in PR #2523 on WordPress/wordpress-develop by adamziel.
3 years ago
#41
Gutenberg plugin migration to WordPress 6.0 also being tracked in https://github.com/WordPress/gutenberg/issues/39889.
This diff moves the localAutosaveInterval editor setting to the preference store introduced in Gutenberg 12.9.0 to WordPress 6.0
Original Pull Request: https://github.com/WordPress/gutenberg/pull/39180
In summary:
Trac ticket: https://core.trac.wordpress.org/ticket/55505
cc @talldan @noisysocks @michalczaplinski who worked on the original Gutenberg PR
hellofromtonya commented on PR #2488:
3 years ago
#42
This PR captures block patterns and adding custom taxonomies filtering as changes are intermingled in the files. See the list of files backported in the description.
@ntsekouras @ironprogrammer Can you double-check that all changes from the files listed are included in this PR please? Some of the changes "seemed" specific to the Gutenberg plugin; so I didn't include them.
Tests are failing. I'll fix those once confirmed that all changes to be backported from those files are here in this PR.
anton-vlasenko commented on PR #2500:
3 years ago
#43
Please disregard my code review as I haven't noticed that the task is closed 🤦
ironprogrammer commented on PR #2488:
3 years ago
#44
In response to @hellofromtonya:
...Some of the changes "seemed" specific to the Gutenberg plugin; so I didn't include them.
I concur that lib/compat/wordpress-6.0/block-patterns-update.php
applies to Gutenberg only.
Tests are failing. I'll fix those once confirmed that all changes to be backported from those files are here in this PR.
Tests needed the new routes to be registered. Please see PR 3 above, which includes updates that get those working. Please review the amendments and feel free to slurp into your PR any changes you agree with.
Please note that for lack of spelunking time today, I did not address the failure for Tests_REST_WpRestBlockPatternsController::test_get_items
. It appears the class-level fixture used to clear the Patterns Registry is getting appended to with additional patterns prior to the unit test, which is causing the failure.
This ticket was mentioned in PR #2529 on WordPress/wordpress-develop by Mamaduka.
3 years ago
#45
Backports change from Gutenberg to support server-side home template resolution in the Site Editor.
Original PR https://github.com/WordPress/gutenberg/pull/38817
Trac ticket: https://core.trac.wordpress.org/ticket/55505
3 years ago
#47
Commited with https://core.trac.wordpress.org/changeset/53090.
3 years ago
#48
I left some notes, but other than what's already been said – it looks pretty solid. Thank you @hellofromtonya !
3 years ago
#49
I left some notes, but other than what's already been said – it looks pretty solid. Thank you @hellofromtonya !
anton-vlasenko commented on PR #2500:
3 years ago
#50
Please disregard my code review as I haven't noticed that the PR is closed 🤦
This ticket was mentioned in PR #2531 on WordPress/wordpress-develop by jsnajdr.
3 years ago
#51
Changes the REST endpoints that get preloaded when displaying a page for post, site and widgets editor, so that they are in sync with what the latest version of Gutenberg to be shipped with Core 6.0 really requests.
This patch finished backport of the `gutenberg_optimize_preload_paths` filter in Gutenberg, and that filter can be removed after this is merged. Trac ticket: https://core.trac.wordpress.org/ticket/55505
Post Editor
The types
and taxonomies
requests have context
changed from edit
to view
, because these requests were modified in https://github.com/WordPress/gutenberg/pull/37685.
Adding two new preloads: list of reusable blocks (wp_block
post type, loaded from /wp/v2/blocks
) and permissions for creating pages (OPTIONS /wp/v2/pages
). Both requests are made in the useBlockEditorSettings
hook, at the top of the post editor React tree.
Site Editor
Like in Post Editor, modify the types
request context
from edit
to view
.
The taxonomies
preload, together with four other ones, can be removed because the Site Editor doesn't request that data.
Site Editor also doesn't need to preload /wp/v2/settings
. These are used only in specialized blocks like Site Title, and by the useTitle
hook which is by no means on critical path.
Widgets Editor
Adds a preload for the /wp/v2/widget-types
endpoint requested by the registerLegacyWidgetVariations
called during initialization.
3 years ago
#53
Committed with https://core.trac.wordpress.org/changeset/53093.
This ticket was mentioned in PR #2533 on WordPress/wordpress-develop by jsnajdr.
3 years ago
#54
Stops loading remote patterns on the post editor and site editor pages. The only place to load remote patterns is going to be the /wp/v2/block-patterns/patterns
REST endpoint handler.
This patch does backport of the gutenberg_disable_load_remote_patterns filter in Gutenberg, and that filter can be removed after this is merged.
Trac ticket: https://core.trac.wordpress.org/ticket/55505
3 years ago
#56
Committed with https://core.trac.wordpress.org/changeset/53094.
3 years ago
#57
Should we also deprecate both methods? They are no longer used in WordPress core with the changes proposed.
/cc @peterwilsoncc and @hellofromtonya
3 years ago
#59
Committed with https://core.trac.wordpress.org/changeset/53095.
3 years ago
#60
Should we also deprecate both methods? They are no longer used in WordPress core with the changes proposed.
They will be both called again once https://github.com/WordPress/wordpress-develop/pull/2488 is merged, because one of the backported REST endpoint calls them when served.
3 years ago
#61
Should we also deprecate both methods? They are no longer used in WordPress core with the changes proposed.
They will be both called again once #2488 is merged, because one of the backported REST endpoint calls them when served.
Thank you for the clarification and help with all backports. Sounds great 👍🏻
I committed changes with https://core.trac.wordpress.org/changeset/53095.
spacedmonkey commented on PR #2488:
3 years ago
#62
As this contains REST API, someone ( including me ) for the REST API maintainer team should really review this before it get merged into core.
This ticket was mentioned in PR #2534 on WordPress/wordpress-develop by scruffian.
3 years ago
#63
Part of https://github.com/WordPress/gutenberg/issues/39889
This bring across changes to theme export functionality, and related code, and tests.
Trac ticket: https://core.trac.wordpress.org/ticket/55505
This ticket was mentioned in PR #2543 on WordPress/wordpress-develop by DAreRodz.
3 years ago
#64
Backport changes from Gutenberg to add functions required by Comment Query Loop and related blocks.
From `/lib/compat/wordpress-6.0/blocks.php`:
- [x]
build_comment_query_vars_from_block
function - [x]
get_comments_pagination_arrow
function - [x]
gutenberg_extend_block_editor_settings_with_discussion_settings
filter's callback - [x]
gutenberg_rest_comment_set_children_as_embeddable
filter's callback
Tests:
- x [
class-block-library-comment-template-test.php
] unit test
Also being tracked in https://github.com/WordPress/gutenberg/issues/39889.
Trac ticket: https://core.trac.wordpress.org/ticket/55505
#66
@
3 years ago
I've added a couple of code reviews. I'm not sure where to put them since relevant PRs have already been closed.
- https://core.trac.wordpress.org/changeset/53090 -> https://github.com/WordPress/wordpress-develop/pull/2523#pullrequestreview-936563364 cc: @zieleadam
- https://core.trac.wordpress.org/changeset/53085 -> https://github.com/WordPress/wordpress-develop/pull/2518#pullrequestreview-936544336 cc: @ramonopoly
scruffian commented on PR #2534:
3 years ago
#67
Thanks, I have pushed these to the PR
TimothyBJacobs commented on PR #2534:
3 years ago
#68
Left what ended up as general feedback, REST API changes look fine to me.
This ticket was mentioned in PR #2554 on WordPress/wordpress-develop by ramonjd.
3 years ago
#69
Let's add @covers annotation to block support tests for test coverage reports! 👍
Props @antonvlasenko
Trac ticket: https://core.trac.wordpress.org/ticket/55505
#70
@
3 years ago
I've added a couple of code reviews. I'm not sure where to put them since relevant PRs have already been closed.
I've added the covers annotation to block support tests for test coverage reports. Thank you!
2 years ago
#71
I only wanted to mention that this patch includes also changes from https://github.com/WordPress/wordpress-develop/pull/2534 that was listed as requiring backport to WP core.
This ticket was mentioned in PR #2526 on WordPress/wordpress-develop by ajlende.
2 years ago
#72
This PR backports the defaultDuotone
option changes from WordPress/gutenberg#38681 and WordPress/gutenberg#39966 in the Gutenberg plugin.
The changes didn't make it into a 5.9.x release, so are being moved in https://github.com/WordPress/gutenberg/pull/40123. Wait for that PR to land before committing these changes.
Gutenberg tracking issue: https://github.com/WordPress/gutenberg/issues/39889
Trac ticket: https://core.trac.wordpress.org/ticket/55505
2 years ago
#74
Committed with https://core.trac.wordpress.org/changeset/53128.
2 years ago
#75
Committed with https://core.trac.wordpress.org/changeset/53128.
2 years ago
#77
Committed with https://core.trac.wordpress.org/changeset/53129. Thank you everyone for the collaboration on this one ❤️
2 years ago
#79
The missing changes were committed in https://core.trac.wordpress.org/changeset/53130. We needed only changes to the theme.json
file. Everything else was already in the trunk
as pointed out by @oandregal 💯
#80
follow-up:
↓ 89
@
2 years ago
I've added a couple of code reviews. I'm not sure where to put them since relevant PRs have already been closed.
@antonvlasenko, this is awesome. Can you confirm if all your comments were addressed in [53128]?
This ticket was mentioned in PR #2542 on WordPress/wordpress-develop by oandregal.
2 years ago
#81
2 years ago
#83
I committed all the changes but tests with https://core.trac.wordpress.org/changeset/53138 to unblock https://github.com/WordPress/wordpress-develop/pull/2564.
This ticket was mentioned in PR #2565 on WordPress/wordpress-develop by oandregal.
2 years ago
#84
Trac ticket: https://core.trac.wordpress.org/ticket/55505
Related Gutenberg PR https://github.com/WordPress/gutenberg/pull/40232
This PR increments the theme.json
version in use, to signal it follows the schema to be published with WordPress 6.0.
There's no modifications or removals in the existing schema, only additions:
title
top-level keypatterns
top-level keysettings.color.defaultDuotone
setting key
The behavior is the same as before, this serves to semantically mark the new files. This version change will be documented in the block editor handbook as well with a PR sent to the Gutenberg repository.
This ticket was mentioned in PR #2567 on WordPress/wordpress-develop by ironprogrammer.
2 years ago
#90
Continued amendments to @hellofromtonya's backports for https://github.com/WordPress/wordpress-develop/pull/2488.
This PR builds off the original PR, and addresses reviewer commentary from April 8 and onward. Please use this more recent PR going forward.
Original PR 2488:
---
Backports changes from Gutenberg to add support for custom taxonomies filtering [Block Library - Query Loop].
- x [
lib/compat/wordpress-6.0/blocks.php
] - x [
lib/compat/wordpress-6.0/block-patterns.php
] - x [
lib/compat/wordpress-6.0/block-patterns-update.php
] - x [
lib/compat/wordpress-6.0/class-wp-rest-block-pattern-categories-controller.php
] - x [
lib/compat/wordpress-6.0/class-wp-rest-block-patterns-controller.php
] - x [
lib/compat/wordpress-6.0/class-wp-rest-block-patterns-controller.php
] - [x]
phpunit/class-wp-rest-block-pattern-categories-controller-test.php
- [x]
phpunit/class-wp-rest-block-patterns-controller-test.php
- [x]
lib/compat/wordpress-6.0/class-wp-theme-json-gutenberg.php
WP_Theme_JSON:: get_patterns()
Also being tracked in https://github.com/WordPress/gutenberg/issues/39889.
Trac ticket: https://core.trac.wordpress.org/ticket/55505
ironprogrammer commented on PR #2488:
2 years ago
#91
Hi, @TimothyBJacobs and @spacedmonkey -- thank you for your feedback! 🙌🏻 Updates for this last round of comments are being addressed over at https://github.com/WordPress/wordpress-develop/pull/2567 (forked from this PR).
CC @gziolo @adamziel @anton-vlasenko @hellofromtonya
This ticket was mentioned in PR #2569 on WordPress/wordpress-develop by ramonjd.
2 years ago
#92
Hello!
Let's unregister the block in the tear_down
method. The block will be unregistered even if the test fails.
See discussion: https://github.com/WordPress/wordpress-develop/pull/2500#discussion_r844275468
Props @gziolo @anton-vlasenko
Corresponding Gutenberg PR:
Trac ticket: https://core.trac.wordpress.org/ticket/55505
ntsekouras commented on PR #2567:
2 years ago
#93
Don't we need the updates of packages in order to test this properly? I mean the patterns fetch request is triggered through js here: https://github.com/WordPress/gutenberg/pull/39185/files#diff-278a4a275170c4215a2f4e9d5c0c6d831f9328258220a76cda04b8d9f39f01a5R71. And also in the packages we use experimental
namespace for the API.
Sorry if I'm missing something, but I'm trying to figure this out and test it properly.
2 years ago
#94
@ntsekouras, we decided to split backport commits into as many individual pieces as possible so it's expected that some changes depend on each other. We can test everything once all backports are in place. This is also why we have 3 weeks dedicated to beta testing so we could detect integration issues and fix them.
2 years ago
#95
I'm still trying to find out how to go about all those backports to WordPress core. https://github.com/WordPress/wordpress-develop/pull/2567 has failing CI jobs. This branch was passing all CI checks so I consider committing it as is and re-apply all other changes as individual commits directly in WP core.
2 years ago
#96
I'm getting closer to have https://github.com/WordPress/wordpress-develop/pull/2567 pass all CI checks.
2 years ago
#98
Committed with https://core.trac.wordpress.org/changeset/53152. Let's address the remaing issues listed in https://github.com/WordPress/wordpress-develop/pull/2488 seperately.
2 years ago
#99
I committed all the changes included in https://github.com/WordPress/wordpress-develop/pull/2567 with https://core.trac.wordpress.org/changeset/53152.
We still need to address the reamining feedback listed in this PR.
2 years ago
#101
Committed with https://core.trac.wordpress.org/changeset/53153. Thank you for another follow-up 🙇🏻
oandregal commented on PR #2565:
2 years ago
#102
Closing per this discussion https://github.com/WordPress/gutenberg/pull/40232#issuecomment-1096508163
This ticket was mentioned in PR #2576 on WordPress/wordpress-develop by anton-vlasenko.
2 years ago
#103
This PR aims to fix issue with loading remote patterns multiple times inside the WP_REST_Block_Patterns_Controller::get_items method.
Trac ticket: https://core.trac.wordpress.org/ticket/55505
This ticket was mentioned in PR #2574 on WordPress/wordpress-develop by jsnajdr.
2 years ago
#104
Backport of https://github.com/WordPress/gutenberg/pull/40254.
Trac ticket: https://core.trac.wordpress.org/ticket/55505
2 years ago
#106
Committed with https://core.trac.wordpress.org/changeset/53154.
This ticket was mentioned in PR #2575 on WordPress/wordpress-develop by jsnajdr.
2 years ago
#107
Backport of https://github.com/WordPress/gutenberg/pull/39185, namely the part where the gutenberg_remove_block_patterns_settings
filter function removes the block patterns fields from settings.
Trac ticket: https://core.trac.wordpress.org/ticket/55505
2 years ago
#109
Committed with https://core.trac.wordpress.org/changeset/53155. Thank you again 😄
This ticket was mentioned in PR #2564 on WordPress/wordpress-develop by adamziel.
2 years ago
#110
I executed npm run wp-packages-update
, npx grunt copy:js
and npm run build
to update the block editor to the latest version based on WordPress packages published to npm.
Trac ticket: https://core.trac.wordpress.org/ticket/55505
2 years ago
#111
We still need to use svn:ignore
in newly added folders with new blocks to align with the following rules in .gitignore
:
/src/wp-includes/blocks/**/*.css /src/wp-includes/blocks/**/*.js /src/wp-includes/blocks/**/*.js.map
2 years ago
#113
Create ignorelist.txt
:
{{{txt
*.js.map
*.js
*.css
}}}
Run in every new block folder:
{{{bash
svn propset svn:ignore -F ingorelist.txt .
}}}
#115
@
2 years ago
- Owner set to gziolo
- Resolution set to fixed
- Status changed from new to closed
In 53157:
2 years ago
#116
Committed with https://core.trac.wordpress.org/changeset/53157. Awesome work @adamziel wrangling all those tricky changes. Let's tackle the issues with styles in the site editor with a new PR.
2 years ago
#117
The CSS issue seems to be a missing backport of https://github.com/WordPress/gutenberg/pull/37193
wordpress-develop
trunk relies on __editorAssets
which is exactly what the pr above replaced with __unstableResolvedAssets
. cc @ellatrix
2 years ago
#118
The CSS issue seems to be a missing backport of WordPress/gutenberg#37193
Fixed with https://github.com/WordPress/wordpress-develop/commit/1d086c57d5bb1da661d675fae8acca94390a4ffa.
This ticket was mentioned in PR #2580 on WordPress/wordpress-develop by talldan.
2 years ago
#120
Fixes an issue introduced in https://github.com/WordPress/wordpress-develop/commit/bca9b6d9401b60dfe8fd86eeeeca68b1cad4d929.
A couple of the field names had incorrect casing which resulted in them not being returned by the REST API.
Trac ticket: https://core.trac.wordpress.org/ticket/55505
2 years ago
#122
Committed with https://core.trac.wordpress.org/changeset/53171.
#123
@
2 years ago
I opened a follow-up ticket #55567 for the following WordPress 6.0 Beta and RC releases. This one loads too long and it's hard to identify tasks left.
2 years ago
#125
I backported 3 out of 5 unit tests to WordPress core with https://core.trac.wordpress.org/changeset/53172.
I had some issues with:
test_rendering_comment_template
test_rendering_comment_template_nested
I would appreciate some help. It can be another PR if that makes it easier.
jorgefilipecosta commented on PR #2542:
2 years ago
#126
jorgefilipecosta commented on PR #2542:
2 years ago
#127
jorgefilipecosta commented on PR #2542:
2 years ago
#128
2 years ago
#129
Committed with https://core.trac.wordpress.org/changeset/53209.
2 years ago
#130
Hey, @gziolo, sure! Let me create a new PR for that. I think it would be easier as there are some changes already integrated into trunk
.
2 years ago
#131
I had some issues with:
test_rendering_comment_template
test_rendering_comment_template_nested
The problem was using
{{{php
render_block_core_comment_template( null, null, $block )
}}}
instead of
{{{php
$block->render()
}}}
in the failing tests.
The second call does (almost) the same thing, but also updates WP_Block_Supports::$block_to_render
, which should be not null
when get_block_wrapper_attributes()
is called. So, I guess render_block_core_comment_template()
is not meant to be called directly.
The first call works in Gutenberg, though; I don't know why. 🤷
I've created a new PR here with the test fixes: https://github.com/WordPress/wordpress-develop/pull/2613. I can close this one if you feel so. ☺️
cc: @gziolo
2 years ago
#132
I've created a new PR here with the test fixes: https://github.com/WordPress/wordpress-develop/pull/2613. I can close this one if you feel so. ☺️
Awesome, thank you so much 💯
Backports the block pattern changes from Gutenberg for Core 6.0:
lib/compat/wordpress-6.0/block-patterns.php
]lib/compat/wordpress-6.0/block-patterns-update.php
]lib/compat/wordpress-6.0/class-wp-rest-block-pattern-categories-controller.php
]lib/compat/wordpress-6.0/class-wp-rest-block-patterns-controller.php
]Also being tracked in this Gutenberg issue.
Trac ticket: https://core.trac.wordpress.org/ticket/55505