WordPress / twentytwenty

Twenty Twenty is included in Core as of WordPress 5.3 🎉 To report any issues, please go here: https://core.trac.wordpress.org/newticket
Other
301 stars 140 forks source link

remove unused variable #923

Closed mehidi258 closed 5 years ago

mehidi258 commented 5 years ago

Removed unused variable $logo_id from functions.php

ntwb commented 5 years ago

Thanks for contributing and the PR @mehidi258 :)

There's another unused variable here, can you add that to you PR please?

https://github.com/WordPress/twentytwenty/blob/master/inc/template-tags.php#L235

mehidi258 commented 5 years ago

Thanks @ntwb I'have added another unused variable on my PR.

carolinan commented 5 years ago

Please remove the new title attribute that has been added.

Title attributes are bad for accessibility because it repeats the text. There already is a screen reader text there.

mehidi258 commented 5 years ago

Thanks @carolinan :) Removed unnecessary title attr.

ianbelanger79 commented 5 years ago

Thanks for submitting the PR. However, it is failing the travis tests due to the warnings listed below. Please fix these and resubmit.

FILE: header.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 5 LINES
----------------------------------------------------------------------
  97 | WARNING | [x] Array double arrow not aligned correctly;
     |         |     expected 2 space(s) between "'container'" and
     |         |     double arrow, but found 6.
     |         |     (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
  98 | WARNING | [x] Array double arrow not aligned correctly;
     |         |     expected 1 space(s) between "'items_wrap'" and
     |         |     double arrow, but found 5.
     |         |     (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
 107 | WARNING | [x] Expected 1 space between "'match_menu_classes'"
     |         |     and double arrow; 2 found.
     |         |     (WordPress.Arrays.MultipleStatementAlignment.LongIndexSpaceBeforeDoubleArrow)
 109 | WARNING | [x] Array double arrow not aligned correctly;
     |         |     expected 1 space(s) between "'title_li'" and
     |         |     double arrow, but found 12.
     |         |     (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
 110 | WARNING | [x] Array double arrow not aligned correctly;
     |         |     expected 3 space(s) between "'walker'" and
     |         |     double arrow, but found 14.
     |         |     (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
----------------------------------------------------------------------

Thanks