Opened 3 years ago
Last modified 3 years ago
#53136 new defect (bug)
Error with "Add to Reusable blocks" in WordPress 5.7.1
Reported by: | sawamura | Owned by: | |
---|---|---|---|
Milestone: | Future Release | Priority: | normal |
Severity: | normal | Version: | 5.7.1 |
Component: | Editor | Keywords: | reporter-feedback needs-testing |
Focuses: | Cc: |
Description
Error when "adding the first paragraph style to the reuse block" in a new post with core/paragraph
added (or used) in register_block_style()
in WordPree 5.7.1 The error message is
Error statement
The editor has encountered an unexpected error
Additional code (functions.php / Theme: Twenty Twenty-One)
<?php register_block_style( 'core/paragraph', array( 'name' => 'blue-paragraph', 'label' => __( 'Blue paragraph' ), 'inline_style' => '.is-style-blue-paragraph { color: blue; }', ) );
Change History (7)
This ticket was mentioned in Slack in #core by chaion07. View the logs.
3 years ago
#3
@
3 years ago
- Milestone changed from Awaiting Review to 5.7.3
Hi @sawamura and welcome to trac!
Thanks for the report, I'm moving this on to the 5.7.3 milestone for visibility. It was discussed in a triage session today and a couple of attendees could reproduce the error.
#4
@
3 years ago
- Summary changed from Error with "Add to Reuse Block" in WordPree 5.7.1 to Error with "Add to Reusable blocks" in WordPress 5.7.1
#6
@
3 years ago
- Milestone changed from 5.7.3 to 5.8.1
With 5.8 RC1 due out next week and no 5.7.3 currently planned, I'm going to punt this to the milestone for the next minor release: 5.8.1.
#7
@
3 years ago
- Keywords reporter-feedback needs-testing added
- Milestone changed from 5.8.1 to Future Release
5.8.1 RC is due out in less than 24 hours and this one has not received any attention in the last few months. I'm going to punt this to Future Release
.
Since this ticket was created, WordPress 5.8 was released. Some additional testing to confirm the issue still happens in the latest version of WordPress, and then confirming all of the conditions required to reproduce would be the next steps here.
I can reproduce this with WordPress 5.7.2 (no plugins active), but inconsistently. Sometimes, there is no error.
With no block style applied, I sometimes run into this JavaScript error:
If I add the style either before or after turning it into a reusable block, I am seeing the following
JavaScript error: