Changeset 43888 for branches/5.0/src/wp-includes/blocks.php
- Timestamp:
- 11/12/2018 10:02:25 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-includes/blocks.php
r43884 r43888 185 185 } 186 186 187 if ( ! is_array( $block['attrs'] ) ) { 188 $block['attrs'] = array(); 189 } 190 187 191 if ( $is_dynamic ) { 188 $attributes = is_array( $block['attrs'] ) ? (array) $block['attrs'] : array();189 192 $global_post = $post; 190 $block_content = $block_type->render( $ attributes, $block_content );193 $block_content = $block_type->render( $block['attrs'], $block_content ); 191 194 $post = $global_post; 192 195 }
Note: See TracChangeset
for help on using the changeset viewer.