Skip to content
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

Update npm packages for WordPress 6.3 Beta 1 #4722

Closed

Conversation

ockham
Copy link
Contributor

@ockham ockham commented Jun 27, 2023

Follow-up to #4699 / r56065.

Includes WordPress/gutenberg#51978, which fixes the following fatal error:

Fatal error: Uncaught Error: Class 'WP_Navigation_Fallback_Gutenberg' not found

Trac ticket: https://core.trac.wordpress.org/ticket/58623


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.

@ockham ockham self-assigned this Jun 27, 2023
@ockham ockham changed the title Update/packages for wp 6 3 beta 1 Update npm packages for WordPress 6.3 Beta 1 Jun 27, 2023
@ockham ockham marked this pull request as ready for review June 27, 2023 15:42
Copy link
Member

@joemcgill joemcgill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One deprecation notice that can be avoided, but this fixes the PHP fatal introduce in core. Pre-approving

@@ -846,7 +852,7 @@ function block_core_navigation_typographic_presets_backcompatibility( $parsed_bl
*/
function block_core_navigation_parse_blocks_from_menu_items( $menu_items, $menu_items_by_parent_id ) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This deprecated function is still being used in render_block_core_navigation. Can that be updated as well before this is merged?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good spot! I'm afraid I'll leave it for Beta 2 since we're already one hour behind schedule for Beta 1, and it doesn't seem like a total blocker 😅

@ockham
Copy link
Contributor Author

ockham commented Jun 27, 2023

Activating Gutenberg v16.0.0 alongside this PR seems to result in a fatal error:

Fatal error: Cannot declare class WP_REST_Navigation_Fallback_Controller, because the name is already in use in /var/www/src/wp-content/plugins/gutenberg/lib/experimental/class-wp-rest-navigation-fallback-controller.php on line 0

Yay for name collisions. Looks like we'll need another round of npms 😕

@spacedmonkey
Copy link
Member

Yay for name collisions. Looks like we'll need another round of npms 😕

CC @getdave

@westonruter
Copy link
Member

What about this Gutenberg reference:

$colors_supports = gutenberg_apply_colors_support( $block->block_type, $attributes );

I don't see that file updated here.

@ockham
Copy link
Contributor Author

ockham commented Jun 27, 2023

Activating Gutenberg v16.0.0 alongside this PR seems to result in a fatal error:

Fatal error: Cannot declare class WP_REST_Navigation_Fallback_Controller, because the name is already in use in /var/www/src/wp-content/plugins/gutenberg/lib/experimental/class-wp-rest-navigation-fallback-controller.php on line 0

Yay for name collisions. Looks like we'll need another round of npms 😕

Ah, interesting. Looks like those collisions have been fixed in GB trunk already — they’re just not present in the current stable version (16.0.0). They will be in 16.1.0, which I believe is scheduled for tomorrow 🤔 : (I’ve confirmed that a GB plugin built from current trunk doesn’t fatal upon activation.)

@ockham
Copy link
Contributor Author

ockham commented Jun 27, 2023

What about this Gutenberg reference:

$colors_supports = gutenberg_apply_colors_support( $block->block_type, $attributes );

I don't see that file updated here.

I'll look into this.

Sidenote, I guess we could really use something like this 😅

@ockham
Copy link
Contributor Author

ockham commented Jun 27, 2023

What about this Gutenberg reference:

$colors_supports = gutenberg_apply_colors_support( $block->block_type, $attributes );

I don't see that file updated here.

I'll look into this.

PR: WordPress/gutenberg#51989

@ockham
Copy link
Contributor Author

ockham commented Jun 27, 2023

Thank you for reviewing/approving, folks!

As stated in Slack:

Since the tests on this PR are failing (probably because Core trunk is currently in a broken state), I’m considering only landing [this PR right here] for now (which should unbreak Core) and leave the rest for Beta 2. How does that sound? (It should shave off at least another hour of work for now; whereas landing [this PR] should be a matter of a few minutes only.)

@ockham
Copy link
Contributor Author

ockham commented Jun 27, 2023

Committed to Core in https://core.trac.wordpress.org/changeset/56076/.

@ockham ockham closed this Jun 27, 2023
@ockham ockham deleted the update/packages-for-wp-6-3-beta-1 branch June 27, 2023 18:27
@ramonjd
Copy link
Member

ramonjd commented Jun 27, 2023

Sidenote, I guess we could really use something like this 😅

I'll add it to a list that I might never return to. I agree though. I'm sure this has been a problem before

thanks @ockham

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants