#53472 closed defect (bug) (fixed)
Regression: "custom-units" handled as bool, should be array.
| Reported by: | kraftner | Owned by: | desrosj |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.8 |
| Component: | Editor | Version: | 5.8 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
Description
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;
Change History (7)
This ticket was mentioned in PR #1403 on WordPress/wordpress-develop by kraftner.
5 years ago
#1
- Keywords has-patch added
#2
@
5 years ago
I made PR that seems to fix it, but I have to admit I do not fully understand the complexities of the editor settings in a theme.json world yet, so better someone double-checks this. ;)
#3
@
5 years ago
- Milestone Awaiting Review → 5.8
Thanks for this ticket, @kraftner! Moving to the milestone to investigate.
This ticket was mentioned in Slack in #core-editor by desrosj. View the logs.
5 years ago
#5
@
5 years ago
- Keywords commit added
- Owner set to
- Status new → assigned
Went through this with a few folks in the #core-editor room in Slack and it looks good. Thanks again!
5 years ago
#7
Merged into Core in https://core.trac.wordpress.org/changeset/51203.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Trac ticket: https://core.trac.wordpress.org/ticket/53472