Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 3 years ago

#54196 closed defect (bug) (fixed)

Twenty Twenty: Inline style class names are duplicated

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

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 5 years ago.
Duplicate .has-drop-cap:not(:focus)::first-letter class removed

Download all attachments as: .zip

Change History (5)

@aezazshekh
5 years ago

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

#1 @aezazshekh
5 years ago

  • Keywords has-patch added

#2 @SergeyBiryukov
5 years ago

  • Milestone Awaiting Review → 5.9

#3 @SergeyBiryukov
5 years ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status new → 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
5 years 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.