Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#33770 closed defect (bug) (fixed)

Comments: duplicated "author" ID and Quick Edit form

Reported by: afercia Owned by: afercia
Priority: normal Milestone: 4.4
Component: Comments Version: 4.3
Severity: normal Keywords: has-patch
Cc: Focuses: ui, accessibility

Description

In the Comments screen both a table column and a form field have an ID with value "author". This prevents the label associated to the form field to correctly work. To reproduce:

  • go in the Comments screen
  • "Quick Edit" a comment, a form will appear
  • click on the "Name" label (see screenshot below)

https://cldup.com/-M-0ggcT2G.png

When clicking the label, focus should be moved to the form field.

Attachments (2)

33770.patch​ (714 bytes ) - added by afercia 11 years ago.
33770.2.patch​ (1.1 KB ) - added by afercia 11 years ago.

Download all attachments as: .zip

Change History (9)

#1 @afercia
11 years ago

  • Keywords has-patch added

Fix duplicated IDs in the Comments screen.

The proposed patch changes the label for attribute and the field ID from "author" to "author-name".

Last edited 11 years ago by afercia (previous) (diff)

#2 @afercia
11 years ago

  • Milestone Awaiting Review → 4.4
  • Owner set to afercia
  • Status new → assigned

#3 @rachelbaker
11 years ago

Good catch.

#4 @wonderboymusic
11 years ago

  • Resolution → fixed
  • Status assigned → closed

In 34070:

Quick Edit: fix an ID attribute name collision by renaming one of the author fields author-name.

Props afercia.
Fixes #33770.

#5 @ocean90
11 years ago

  • Keywords needs-patch added; has-patch removed
  • Resolution fixed
  • Status closed → reopened

trunk/src/wp-admin/js/edit-comments.js needs to be updated as well.

#6 @afercia
11 years ago

  • Keywords has-patch added; needs-patch removed

New patch to update the jQuery ID selectors in /wp-admin/js/edit-comments.js​. Thanks @ocean90. Sorry, missed that.

#7 @wonderboymusic
11 years ago

  • Resolution → fixed
  • Status reopened → closed

In 34159:

After [34070], account for the new ID in Quick Edit JS.

Props afercia.
Fixes #33770.

Note: See TracTickets for help on using tickets.