Make WordPress Core

Opened 6 months ago

Closed 6 months ago

#65353 closed defect (bug) (duplicate)

Twenty Twenty-One: Quote block not displayed correctly

Reported by: miscwp Owned by:
Priority: normal Milestone:
Component: Bundled Theme Version: 7.0
Severity: normal Keywords:
Cc: Focuses: ui, css

Description

Hi, I use the Twenty Twenty-One theme and since the upgrade to WP 7.0 Quote blocks are not displayed correctly: in the editor the Quote block contents have the correct indendation (as before 7.0), but when viewing the post the content doesn't have indendation (different to before 7.0). Please see the attached screenshot as example (left unexpected, right expected). Thanks!

Attachments (1)

Screenshot 2026-05-26 at 19.48.22.png​ (54.2 KB ) - added by miscwp 6 months ago.

Download all attachments as: .zip

Change History (7)

#1 @sabernhardt
6 months ago

  • Component Themes → Bundled Theme

Hi and welcome to WordPress Core Trac!

I believe this stems from the same issue as #65272. The left padding comes from the Quote block's theme.css stylesheet, which is not loaded when the stylesheets are separate.

#2 follow-up: @westonruter
6 months ago

  • Keywords reporter-feedback added

@miscwp can you confirm #65272 fully describes your issue? If so, we'll close this as a duplicate.

#3 in reply to: ↑ 2 @miscwp
6 months ago

Replying to westonruter:

@miscwp can you confirm #65272 fully describes your issue? If so, we'll close this as a duplicate.

Certainly could be related, but I don't have a way to test / confirm. My description above should be enough to reproduce the bug and test the patch. I use vanilla WP 7.0 with the Twenty Twenty-One theme, no plugins. Feel free to close the issue and I'll re-open if 7.1 doesn't address the problem. Is there an ETA for the fix?

Thanks for working on this!

#4 @sabernhardt
6 months ago

I probably should recommend trying the ​Load Combined Core Block Assets plugin. If that corrects the display, it would be a strong indication that the two tickets are alike, and you could leave the plugin active.

A custom plugin that includes the following hook could give clearer proof that the tickets are related; however, I do NOT think this code should remain active on your site after testing it.

<?php
/*
Plugin Name: Revert r61981 action changes
*/

function wptrac_revert_r61981_action_changes() {
	remove_action( 'wp_default_styles', 'wp_load_classic_theme_block_styles_on_demand', 0 );
	add_action( 'init', 'wp_load_classic_theme_block_styles_on_demand', 8 );
}
add_action( 'init', 'wptrac_revert_r61981_action_changes', 0 );
Last edited 6 months ago by sabernhardt (previous) (diff)

#5 @miscwp
6 months ago

@sabernhardt Thanks for the test plugin "Revert r61981 action changes" – that indeed seems to fix the issue for me (correct styling/indendation for Quote blocks in both the editor and view).

Last edited 6 months ago by miscwp (previous) (diff)

#6 @sabernhardt
6 months ago

  • Keywords reporter-feedback removed
  • Milestone Awaiting Review
  • Resolution → duplicate
  • Status new → closed

Duplicate of #65272.

Thanks for confirming! I'll close this as a duplicate.

Note: See TracTickets for help on using tickets.