Make WordPress Core

Opened 18 years ago

Closed 17 years ago

#6129 closed defect (bug) (invalid)

upload.js should reference parent instead of top

Reported by: huwr Owned by:
Priority: normal Milestone:
Component: Administration Version:
Severity: normal Keywords:
Cc: Focuses:

Description

line 267 of wp-admin/js/upload.js:

if ( !win )
win = top;

breaks when wp-admin is within a master frame. for example, a cms system may use WP as one component while keeping a CMS navigation frame at the top. this javascript would reference the navigation frame, not the correct WP frame.

this can be fixed by:

if ( !win )
win = parent;

which will reference what it was intended to within any frame hierarchy.

Change History (1)

#1 @Denis-de-Bernardy
17 years ago

  • Milestone 2.9
  • Resolutioninvalid
  • Status newclosed

can't find this code any more.

Note: See TracTickets for help on using tickets.