WordPress.org

Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#13205 closed defect (bug) (fixed)

Add menu item autocompleters throw JS errors when no results found

Reported by: koopersmith Owned by: koopersmith
Milestone: 3.0 Priority: normal
Severity: normal Version: 3.0
Component: Menus Keywords: has-patch
Focuses: Cc:

Description

The JS error is located in the jQuery autocomplete module at line 429, which means somewhere, somehow, we're probably doing something wrong.

Attachments (3)

13205.diff (406 bytes) - added by duck_ 9 years ago.
13205.2.diff (727 bytes) - added by duck_ 9 years ago.
didn't fix for category search
13205.3.diff (727 bytes) - added by duck_ 9 years ago.
refreshed for r14387

Download all attachments as: .zip

Change History (6)

@duck_
9 years ago

#1 @duck_
9 years ago

  • Keywords has-patch added

I believe the autocomplete plugin requires each match to be on a new line or nothing if no matches. Echoing '-1' was breaking it.

@duck_
9 years ago

didn't fix for category search

@duck_
9 years ago

refreshed for r14387

#2 @nacin
9 years ago

(In [14405]) Fix JS error in autocomplete. props koopersmith, see #13205.

#3 @ptahdunbar
9 years ago

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.