Make WordPress Core

Opened 8 months ago

Closed 7 months ago

Last modified 5 months ago

#63741 closed enhancement (fixed)

Block Bindings: Add core/post-data source

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

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.


8 months ago
#1

  • Keywords has-patch has-unit-tests added

#2 @Bernhard Reiter
7 months ago

  • Owner set to Bernhard Reiter
  • Resolution set to fixed
  • Status changed from new to closed

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
5 months ago

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