Opened 7 months ago
Closed 7 months ago
#64107 closed enhancement (fixed)
Block Bindings: Add/update sources for use with Navigation blocks
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 6.9 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | General | Keywords: | has-patch |
| Focuses: | Cc: |
Description
Block Bindings can be used with the Navigation Link and Navigation Submenu blocks to make sure that the link destination is kept up-to-date based on other attributes, even when the destination changes. Specifically, a Navigation Link or Submenu can point to a given post object or taxonomy term page; these can be specified by a combination of kind (e.g. post-type), type (e.g. page), and id attributes. (The destination can change if e.g. pretty permalinks are used, and a given page's slug is changed.)
The core/post-data source lends itself for the case of post-type links; however, it needs to expose the given post object's link field. For taxonomy terms, a new core/term-data source should be introduced.
Change History (3)
This ticket was mentioned in PR #10305 on WordPress/wordpress-develop by @Bernhard Reiter.
7 months ago
#1
- Keywords has-patch added
@Bernhard Reiter commented on PR #10305:
7 months ago
#2
Failing CI jobs seem to be unrelated (and present on all recently filed PRs); they seem to be related to the Gutenberg build system (some TypeScript build error specifically?)
I've asked in WordPress Slack.
Carry over changes to the
core/post-datasource from https://github.com/WordPress/gutenberg/pull/72165.Trac ticket: https://core.trac.wordpress.org/ticket/64107