Skip to content
This repository was archived by the owner on Feb 19, 2025. It is now read-only.
This repository was archived by the owner on Feb 19, 2025. It is now read-only.

The following is a bit hacky. If we stick with this techn... #53

@github-actions

Description

@github-actions

The following is a bit hacky. If we stick with this technique, we might want to change apply_block_supports() to accepts a block as its argument.


// TODO: The following is a bit hacky. If we stick with this technique, we might
// want to change apply_block_supports() to accepts a block as its argument.
\WP_Block_Supports::$block_to_render = $block;
$block_supports_attributes = \WP_Block_Supports::get_instance()->apply_block_supports();
\WP_Block_Supports::$block_to_render = $previous_block_to_render;
$block_wrapper = sprintf(
'<wp-block ' .
'data-wp-block-type="%1$s" ' .
'data-wp-block-uses-block-context="%2$s" ' .
'data-wp-block-provides-block-context="%3$s" ' .
'data-wp-block-attributes="%4$s" ' .
'data-wp-block-sourced-attributes="%5$s" ' .
'data-wp-block-props="%6$s" ' .

🚀 This issue was generated by the automations bot based on a todo comment in 8bbbac9 when #21 was merged. cc @ockham

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions