Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#29766 closed defect (bug) (fixed)

Comments listings empty author IP link

Reported by: afercia Owned by: SergeyBiryukov
Priority: normal Milestone: 4.1
Component: Comments Version: 4.0
Severity: normal Keywords: has-patch needs-testing
Cc: Focuses: ui

Description

If, for any reason, comment_author_IP() returns an empty string, an empty link will be printed in the Comments listings. When tabbing with the keyboard, this link can be activated and it's a useless tab stop for keyboard users.
In Firefox the empty link is clearly visible when focused, while in Chrome it's a bit more difficult to spot, see screenshot:

https://cldup.com/erCUaGj7cf.png

Proposed patch prints the link just if comment_author_IP is not empty.

Attachments (1)

29766.patch​ (922 bytes ) - added by afercia 12 years ago.

Download all attachments as: .zip

Change History (5)

#1 @afercia
12 years ago

  • Keywords has-patch needs-testing added

#2 @afercia
12 years ago

wrong screenshot :)

https://cldup.com/Wofv-qHyHU.png

#3 @SergeyBiryukov
12 years ago

  • Milestone Awaiting Review → 4.1

#4 @SergeyBiryukov
12 years ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status new → closed

In 29774:

Don't display an empty comment author IP link on Comments screen.

props afercia.
fixes #29766.

Note: See TracTickets for help on using tickets.