WordPress.org

Make WordPress Core

Changeset 45760


Ignore:
Timestamp:
08/07/2019 11:40:28 AM (4 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentynineteen/classes/class-twentynineteen-svg-icons.php

    r45299 r45760  
    156156
    157157        'keyboard_arrow_left'      => /* material-design – keyboard_arrow_left */ '
    158 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
     158<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
    159159    <path d="M14 7l-5 5 5 5V7z"></path>
    160160    <path fill="none" d="M24 0v24H0V0h24z"></path>
     
    162162
    163163        'arrow_drop_down_ellipsis' => /* custom – arrow_drop_down_ellipsis */ '
    164 <svg width="24" height="24" xmlns="http://www.w3.org/2000/svg">
     164<svg xmlns="http://www.w3.org/2000/svg">
    165165    <g fill="none" fill-rule="evenodd">
    166166        <path d="M0 0h24v24H0z"/>
Note: See TracChangeset for help on using the changeset viewer.