[wp-trac] [WordPress Trac] #6129: upload.js should reference parent
instead of top
WordPress Trac
wp-trac at lists.automattic.com
Fri Mar 7 23:20:54 GMT 2008
#6129: upload.js should reference parent instead of top
----------------------------+-----------------------------------------------
Reporter: huwr | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.6
Component: Administration | Version:
Severity: normal | Keywords:
----------------------------+-----------------------------------------------
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.
--
Ticket URL: <http://trac.wordpress.org/ticket/6129>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list