[wp-trac] [WordPress Trac] #53472: Regression: "custom-units" handled as bool, should be array.

WordPress Trac noreply at wordpress.org
Mon Jun 21 17:56:34 UTC 2021


#53472: Regression: "custom-units" handled as bool, should be array.
--------------------------+-----------------------------
 Reporter:  kraftner      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 In the current WP 5.8 Beta 2 you can't customize Custom Units.

 This seems to have been introduced with changeset:50959 since it turns
 `custom-units` into a bool no matter what:

 {{{
 $editor_settings['enableCustomUnits'] = count(
 $editor_settings['__experimentalFeatures']['spacing']['units'] ) > 0;
 }}}


 https://github.com/WordPress/gutenberg/blob/9b078d20caef44ecbebb17379f02d42b36947f4c/lib
 /global-styles.php#L202

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53472>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list