Make WordPress Core

Opened 13 months ago

Closed 12 months ago

Last modified 10 months ago

#63741 closed enhancement (fixed)

Block Bindings: Add core/post-data source

Reported by: Bernhard Reiter Owned by: Bernhard Reiter
Priority: normal Milestone: 6.9
Component: General Version:
Severity: normal Keywords: has-patch has-unit-tests gutenberg-merge
Cc: Focuses:

Description

It would be good to expose information associated with a given post, such as title, author, publish date etc. through a Block Bindings source, tentatively named core/post-data. This is explored in this Gutenberg PR, where the existing Date block is updated to use Block Bindings to bind to a post's publish date or last modified date (or to any source that exposes a date).

Change History (4)

This ticket was mentioned in PR #9299 on WordPress/wordpress-develop by @Bernhard Reiter.


13 months ago
#1

  • Keywords has-patch has-unit-tests added

#2 @Bernhard Reiter
12 months ago

  • Owner set to Bernhard Reiter
  • Resolutionfixed
  • Status newclosed

In 60539:

Block Bindings: Add core/post-data source.

Add a new Block Bindings source, core/post-data, which exposes date and modified fields for now -- reflecting the publish date and the last modified date of the post, respectively. The source could be subsequently extended to include other fields associated with a post object, such as title, featured image, etc.

Props bernhard-reiter.
Closes #63741.

#4 @wildworks
10 months ago

  • Keywords gutenberg-merge added
Note: See TracTickets for help on using tickets.