WordPress.org

Make WordPress Core

Opened 5 months ago

Closed 6 weeks ago

#47128 closed defect (bug) (fixed)

Twenty Nineteen: Remove duplicate height and width attribute from SVG icon

Reported by: mukesh27 Owned by: SergeyBiryukov
Milestone: 5.3 Priority: normal
Severity: normal Version:
Component: Bundled Theme Keywords: has-patch good-first-bug
Focuses: coding-standards Cc:

Description

W3C shows duplicate height and width error in SVG icons.

W3C error:

Error: Duplicate attribute width.
Error: Duplicate attribute height.

Attachments (1)

47128.diff (1.2 KB) - added by mukesh27 5 months ago.
Patch.

Download all attachments as: .zip

Change History (6)

@mukesh27
5 months ago

Patch.

#1 @mukesh27
4 months ago

#47455 was marked as a duplicate.

#2 @SergeyBiryukov
4 months ago

  • Milestone changed from Awaiting Review to 5.3

#3 @SergeyBiryukov
4 months ago

  • Owner set to SergeyBiryukov
  • Status changed from new to reviewing

#4 @desrosj
4 months ago

#47455 was marked as a duplicate.

#5 @SergeyBiryukov
6 weeks ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

In 45760:

Twenty Nineteen: Remove duplicate height and width attributes from SVG icons.

The attributes are added via TwentyNineteen_SVG_Icons::get_svg(), there's no need to have them separately in SVG sources.

Props mukesh27, albertomake.
Fixes #47128.

Note: See TracTickets for help on using tickets.