WordPress.org

Make WordPress Core

Opened 2 months ago

Closed 2 months ago

Last modified 2 months ago

#54196 closed defect (bug) (fixed)

Twenty Twenty: Inline style class names are duplicated

Reported by: tmatsuur Owned by: SergeyBiryukov
Milestone: 5.9 Priority: normal
Severity: normal Version:
Component: Bundled Theme Keywords: has-patch
Focuses: css Cc:

Description

In version 1.8 of the Twenty Twenty theme, ".has-drop-cap:not(:focus)::first-letter" is duplicated in the inline style output of the front-end in the Japanese environment.

Line 121 of /classes/class-twentytwenty-non-latin-languages.php:

'front-end'      => array( 'body', ... '.wp-block-file__button', '.has-drop-cap:not(:focus)::first-letter', '.has-drop-cap:not(:focus)::first-letter', ... ),

If the second one is a typo, you may want to remove it.

Attachments (1)

54196.patch (4.0 KB) - added by aezazshekh 2 months ago.
Duplicate .has-drop-cap:not(:focus)::first-letter class removed

Download all attachments as: .zip

Change History (5)

@aezazshekh
2 months ago

Duplicate .has-drop-cap:not(:focus)::first-letter class removed

#1 @aezazshekh
2 months ago

  • Keywords has-patch added

#2 @SergeyBiryukov
2 months ago

  • Milestone changed from Awaiting Review to 5.9

#3 @SergeyBiryukov
2 months ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 51874:

Twenty Twenty: Remove duplicate class name from localized font-family elements.

Follow-up to [46613].

Props tmatsuur, aezazshekh.
Fixes #54196.

#4 @SergeyBiryukov
2 months ago

In 51875:

Twenty Twenty-One: Remove duplicate class name from localized font-family elements.

Follow-up to [46613], [49216], [51874].

Props tmatsuur, aezazshekh.
See #54196.

Note: See TracTickets for help on using tickets.