Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Expose in editor settings
  • Loading branch information
ockham committed Sep 25, 2025
commit 205df2cd65a9922fe7c04c60bbd65c6a49a5b0d4
8 changes: 8 additions & 0 deletions src/wp-includes/block-editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,14 @@ function get_block_editor_settings( array $custom_settings, $block_editor_contex
$custom_settings
);

$editor_settings['blockBindingsSupportedAttributes'] = array();
foreach ( array_keys( WP_Block_Type_Registry::get_instance()->get_all_registered() ) as $block_type ) {
$supported_block_attributes = get_block_bindings_supported_attributes( $block_type );
if ( ! empty( $supported_block_attributes ) ) {
$editor_settings['blockBindingsSupportedAttributes'][ $block_type ] = $supported_block_attributes;
}
}

$global_styles = array();
$presets = array(
array(
Expand Down