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. Built from https://develop.svn.wordpress.org/trunk@60539 git-svn-id: http://core.svn.wordpress.org/trunk@59875 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -364,6 +364,7 @@ require ABSPATH . WPINC . '/class-wp-classic-to-block-menu-converter.php';
|
||||
require ABSPATH . WPINC . '/class-wp-navigation-fallback.php';
|
||||
require ABSPATH . WPINC . '/block-bindings.php';
|
||||
require ABSPATH . WPINC . '/block-bindings/pattern-overrides.php';
|
||||
require ABSPATH . WPINC . '/block-bindings/post-data.php';
|
||||
require ABSPATH . WPINC . '/block-bindings/post-meta.php';
|
||||
require ABSPATH . WPINC . '/blocks.php';
|
||||
require ABSPATH . WPINC . '/blocks/index.php';
|
||||
|
||||
Reference in New Issue
Block a user