Changeset 56709 for trunk/src/wp-includes/block-supports/settings.php
- Timestamp:
- 09/26/2023 01:45:23 PM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-supports/settings.php
r56382 r56709 46 46 47 47 // return early if no settings are found on the block attributes. 48 $block_settings = _wp_array_get( $block, array( 'attrs', 'settings' ), null );48 $block_settings = isset( $block['attrs']['settings'] ) ? $block['attrs']['settings'] : null; 49 49 if ( empty( $block_settings ) ) { 50 50 return $block_content; … … 83 83 84 84 // return early if no settings are found on the block attributes. 85 $block_settings = _wp_array_get( $block, array( 'attrs', 'settings' ), null );85 $block_settings = isset( $block['attrs']['settings'] ) ? $block['attrs']['settings'] : null; 86 86 if ( empty( $block_settings ) ) { 87 87 return null;
Note: See TracChangeset
for help on using the changeset viewer.