Make WordPress Core

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#22710 closed defect (bug) (fixed)

TypeError: router is null when editing a gallery (media-views.js line 505)

Reported by: nacin Owned by: markjaquith
Priority: normal Milestone: 3.5
Component: Media Version: 3.5
Severity: normal Keywords: has-patch commit
Cc: Focuses:

Description

We're doing router = frame.router.get(), then router.get() again.

It should either be view = frame.router.get() then use view, or router = frame.router then use router.get(). Since we pass a value to get(), it should be the latter.

Via markjaquith in IRC.

Attachments (1)

22710.diff​ (625 bytes ) - added by nacin 14 years ago.

Download all attachments as: .zip

Change History (4)

#1 @nacin
14 years ago

  • Keywords has-patch commit added

#2 @markjaquith
14 years ago

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

In 23015:

Fix a typo in media-views.js that referenced frame.router.get() instead of frame.router. Fixes #22710

#3 @nacin
14 years ago

This led to #22715, which led to #22930. There, we got it right.

Note: See TracTickets for help on using tickets.