mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 08:11:52 +01:00
Editor: Add id to the supported Image's binding attributes
Syncs changes from the Gutenberg plugin: https://github.com/WordPress/gutenberg/pull/59194. Fixes #60577. Props kevin940726, ankit-k-gupta, sonali844, harshalkadu, gziolo. Built from https://develop.svn.wordpress.org/trunk@57700 git-svn-id: http://core.svn.wordpress.org/trunk@57201 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9a3210759f
commit
4084114eab
@ -236,7 +236,7 @@ class WP_Block {
|
||||
$supported_block_attributes = array(
|
||||
'core/paragraph' => array( 'content' ),
|
||||
'core/heading' => array( 'content' ),
|
||||
'core/image' => array( 'url', 'title', 'alt' ),
|
||||
'core/image' => array( 'id', 'url', 'title', 'alt' ),
|
||||
'core/button' => array( 'url', 'text', 'linkTarget', 'rel' ),
|
||||
);
|
||||
|
||||
@ -289,7 +289,7 @@ class WP_Block {
|
||||
*/
|
||||
private function replace_html( string $block_content, string $attribute_name, $source_value ) {
|
||||
$block_type = $this->block_type;
|
||||
if ( ! isset( $block_type->attributes[ $attribute_name ] ) ) {
|
||||
if ( ! isset( $block_type->attributes[ $attribute_name ]['source'] ) ) {
|
||||
return $block_content;
|
||||
}
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.5-beta2-57699';
|
||||
$wp_version = '6.5-beta2-57700';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user