Skip to content

Navigation Block: Deprecate obsolete Block Hooks helper functions#7849

Draft
ockham wants to merge 8 commits into
WordPress:trunkfrom
ockham:deprecate/navigation-block-block-hooks-helpers
Draft

Navigation Block: Deprecate obsolete Block Hooks helper functions#7849
ockham wants to merge 8 commits into
WordPress:trunkfrom
ockham:deprecate/navigation-block-block-hooks-helpers

Conversation

@ockham

@ockham ockham commented Nov 20, 2024

Copy link
Copy Markdown
Contributor

See WordPress/gutenberg#64676 and WordPress/gutenberg#67193.

Note that we cannot delete these functions from navigation.php manually, as that file is generated from a Gutenberg file. As a result, this PR currently causes some fatal errors, as some function declarations are duplicated. We will have to wait for WordPress/gutenberg#64676 to be merged and sync'd over to this repo before we can merge this PR.

Trac ticket:


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.

@github-actions

Copy link
Copy Markdown

Test using WordPress Playground

The changes in this pull request can previewed and tested using a WordPress Playground instance.

WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser.

Some things to be aware of

  • The Plugin and Theme Directories cannot be accessed within Playground.
  • All changes will be lost when closing a tab with a Playground instance.
  • All changes will be lost when refreshing the page.
  • A fresh instance is created each time the link below is clicked.
  • Every time this pull request is updated, a new ZIP file containing all changes is created. If changes are not reflected in the Playground instance,
    it's possible that the most recent build failed, or has not completed. Check the list of workflow runs to be sure.

For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation.

Test this pull request with WordPress Playground.

@ockham

ockham commented Jan 28, 2025

Copy link
Copy Markdown
Contributor Author

TODO: Deprecate block_core_navigation_mock_parsed_block and block_core_navigation_insert_hooked_blocks once WordPress/gutenberg#68926 lands.

@ockham

ockham commented Jan 29, 2025

Copy link
Copy Markdown
Contributor Author

TODO: Deprecate block_core_navigation_mock_parsed_block and block_core_navigation_insert_hooked_blocks once WordPress/gutenberg#68926 lands.

Done in c03008a and e4dddb2. These will require changes from WordPress/gutenberg#68926 to be synced over, and #8212 to land.

@ockham ockham force-pushed the deprecate/navigation-block-block-hooks-helpers branch from e4dddb2 to ed5f757 Compare March 3, 2025 15:25
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.

1 participant