Editor: fix undefined array key warning.
Checks if `attrs` array key exists before using its value. Props mukesh27, kafleg. Fixes #59468. Built from https://develop.svn.wordpress.org/trunk@56731 git-svn-id: http://core.svn.wordpress.org/trunk@56243 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6ba0e95c88
commit
8f422594ee
|
@ -48,7 +48,7 @@ function wp_register_background_support( $block_type ) {
|
|||
*/
|
||||
function wp_render_background_support( $block_content, $block ) {
|
||||
$block_type = WP_Block_Type_Registry::get_instance()->get_registered( $block['blockName'] );
|
||||
$block_attributes = $block['attrs'];
|
||||
$block_attributes = ( isset( $block['attrs'] ) && is_array( $block['attrs'] ) ) ? $block['attrs'] : array();
|
||||
$has_background_image_support = block_has_support( $block_type, array( 'background', 'backgroundImage' ), false );
|
||||
|
||||
if (
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.4-beta1-56730';
|
||||
$wp_version = '6.4-beta1-56731';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue