Changeset 51203 for trunk/src/wp-includes/block-editor.php
- Timestamp:
- 06/22/2021 05:15:27 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-editor.php
r51200 r51203 355 355 } 356 356 if ( isset( $editor_settings['__experimentalFeatures']['spacing']['units'] ) ) { 357 if ( ! is_array( $editor_settings['__experimentalFeatures']['spacing']['units'] ) ) { 358 $editor_settings['enableCustomUnits'] = false; 359 } else { 360 $editor_settings['enableCustomUnits'] = count( $editor_settings['__experimentalFeatures']['spacing']['units'] ) > 0; 361 } 357 $editor_settings['enableCustomUnits'] = $editor_settings['__experimentalFeatures']['spacing']['units']; 362 358 unset( $editor_settings['__experimentalFeatures']['spacing']['units'] ); 363 359 }
Note: See TracChangeset
for help on using the changeset viewer.