Skip to content

Commit

Permalink
Fix PHP warning
Browse files Browse the repository at this point in the history
  • Loading branch information
George Hotelling committed Mar 20, 2020
1 parent 2c02724 commit b4f4c2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/block-library/src/query/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,11 @@ function render_block_core_query( $attributes ) {
foreach ( $blocks as $block ) {
$block_data = array(
'blockName' => $block['name'],
'attrs' => $block['attributes'],
'innerContent' => array(),
);
if ( isset( $block['attributes'])) {
$block_data['attrs'] = $block['attributes'];
}

$allowed_html = wp_kses_allowed_html( 'post' );
$allowed_html['time'] = array(
Expand Down

0 comments on commit b4f4c2c

Please sign in to comment.