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

Block Hooks: Try to make insertion into Navigation block work on WP 6.4 #58508

Closed
wants to merge 4 commits into from

Conversation

ockham
Copy link
Contributor

@ockham ockham commented Jan 31, 2024

What?

Try to make hooked blocks insertion into Navigation block work on WP 6.4.

Why?

We had to disable this on WP 6.4 and below, as some required functionality is missing there. That means that the feature is currently only working when running the GB plugin on Core trunk.

How?

Not great. I thought I could get this to work by clever usage of the hooked_block_types filter, but it doesn't really look like it:

https://github.com/WordPress/gutenberg/compare/add/block-hooks-6-5-compat-layer-for-nav-block?expand=1#diff-5369312b3be3a2f9a55c7cc974336247b6e79105e869f241f99e64e2ea1ac756R35-R39

Testing Instructions

TBD, but basically: Test on WP 6.4, and on trunk.

@ockham ockham self-assigned this Jan 31, 2024
@ockham
Copy link
Contributor Author

ockham commented Jan 31, 2024

FYI @tjcafferkey

@ockham ockham changed the title Add/block hooks 6 5 compat layer for nav block Block Hooks: Try to make insertion into Navigation block work on WP 6.4 Jan 31, 2024
Copy link

This pull request has changed or added PHP files. Please confirm whether these changes need to be synced to WordPress Core, and therefore featured in the next release of WordPress.

If so, it is recommended to create a new Trac ticket and submit a pull request to the WordPress Core Github repository soon after this pull request is merged.

If you're unsure, you can always ask for help in the #core-editor channel in WordPress Slack.

Thank you! ❤️

View changed files
❔ lib/compat/wordpress-6.5/block-hooks.php
❔ lib/load.php

@ockham ockham mentioned this pull request Feb 5, 2024
16 tasks
@gziolo
Copy link
Member

gziolo commented Jul 30, 2024

I’m sure it can be closed at this stage. Gutenberg should not support WP 6.4 anymore after WP 6.6 is out.

@gziolo gziolo closed this Jul 30, 2024
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.

2 participants