Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#11182 closed defect (bug) (fixed)

Category with ampersand (&) gets added to dropdown as &

Reported by: aldenta's profile aldenta Owned by: azaozz's profile azaozz
Milestone: 2.9 Priority: normal
Severity: normal Version: 2.9
Component: JavaScript Keywords: has-patch tested
Focuses: Cc:


When adding a new category, the name of the category is added to the Category Parent dropdown via javascript after the ajax call completes. If there is an ampersand in the category title it shows up in the dropdown as & instead of &.

Steps to reproduce

  1. Go to Admin->Posts->Categories
  2. Add new category with ampersand (&) in the name
  3. Look at the parent dropdown

Attachments (2)

11182.diff (494 bytes) - added by aldenta 15 years ago.
11182.screenshot.png (21.9 KB) - added by aldenta 15 years ago.

Download all attachments as: .zip

Change History (5)

15 years ago

#1 @aldenta
15 years ago

  • Keywords has-patch added

#2 @scribu
15 years ago

  • Keywords tested added
  • Milestone changed from Unassigned to 2.9

Confirmed behaviour & working patch.

#3 @azaozz
15 years ago

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

(In [12236]) Do not show entities when inserting newly added category in the parents dropdown, props aldenta, fixes #11182

Note: See TracTickets for help on using tickets.