Make WordPress Core


Ignore:
Timestamp:
08/05/2025 01:52:44 PM (8 months ago)
Author:
Bernhard Reiter
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/functions.php

    r57558 r60539  
    349349    // Block binding sources.
    350350    remove_action( 'init', '_register_block_bindings_pattern_overrides_source' );
     351    remove_action( 'init', '_register_block_bindings_post_data_source' );
    351352    remove_action( 'init', '_register_block_bindings_post_meta_source' );
    352353}
Note: See TracChangeset for help on using the changeset viewer.