Opened 5 years ago

Closed 4 years ago

#6129 closed defect (bug) (invalid)

upload.js should reference parent instead of top

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

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)

  • Milestone 2.9 deleted
  • Resolution set to invalid
  • Status changed from new to closed

can't find this code any more.

Note: See TracTickets for help on using tickets.