mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-05 15:16:59 +00:00
Editor: Remove default "layout" block attribute from WP_Block_Type::get_attributes
The merging behavior which assigns the `layout` attribute in `WP_Block_Type` gets removed. Props aduth, TimothyBlynJacobs. Fixes #50257. git-svn-id: https://develop.svn.wordpress.org/trunk@48118 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -276,18 +276,7 @@ class WP_Block_Type {
|
||||
*/
|
||||
public function get_attributes() {
|
||||
return is_array( $this->attributes ) ?
|
||||
array_merge(
|
||||
$this->attributes,
|
||||
array(
|
||||
'layout' => array(
|
||||
'type' => 'string',
|
||||
),
|
||||
)
|
||||
) :
|
||||
array(
|
||||
'layout' => array(
|
||||
'type' => 'string',
|
||||
),
|
||||
);
|
||||
$this->attributes :
|
||||
array();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user