Opened 4 years ago
Closed 4 years ago
#53458 closed defect (bug) (fixed)
Incorrect variable name used in `get_block_editor_settings()`
Reported by: | johnbillion | Owned by: | desrosj |
---|---|---|---|
Milestone: | 5.8 | Priority: | normal |
Severity: | normal | Version: | 5.8 |
Component: | Editor | Keywords: | has-patch has-unit-tests commit dev-reviewed fixed-major |
Focuses: | Cc: |
Description
The get_block_editor_settings()
function attempts to read values from a variable called $settings
which does not exist, meaning these three blocks are all dead code: https://github.com/WordPress/wordpress-develop/blob/c23452730188cc371effedd19493a8d50d3031dd/src/wp-includes/block-editor.php#L313-L339
Change History (16)
This ticket was mentioned in PR #1397 on WordPress/wordpress-develop by mukeshpanchal27.
4 years ago
#1
- Keywords has-patch added
#4
@
4 years ago
- Keywords needs-unit-tests added
The fix looks fairly straight forward. I'd like to get the fix in prior to beta 3, so going to commit.
The unit test can be added after to help prevent a regression in the future.
4 years ago
#6
Merged into Core in https://core.trac.wordpress.org/changeset/51213.
This ticket was mentioned in Slack in #core by desrosj. View the logs.
4 years ago
This ticket was mentioned in Slack in #core by jeffpaul. View the logs.
4 years ago
This ticket was mentioned in PR #1462 on WordPress/wordpress-develop by felipeelia.
4 years ago
#9
- Keywords has-unit-tests added; needs-unit-tests removed
Add test for 53458
Trac ticket: https://core.trac.wordpress.org/ticket/53458
#10
@
4 years ago
Hopefully, it is not too late for that PR! Let me know if you'd prefer any other strategy to test it or if any change in the code is needed. Thanks in advance!
#13
@
4 years ago
- Keywords commit dev-feedback fixed-major added
- Resolution fixed deleted
- Status changed from closed to reopened
Reopening to backport [51369].
4 years ago
#14
Merged into Core in https://core.trac.wordpress.org/changeset/51369.
Trac ticket: https://core.trac.wordpress.org/ticket/53458