#6864 closed defect (bug) (fixed)
Problem with insertion of images in Firefox
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 2.6 | Priority: | normal |
| Severity: | normal | Version: | 2.5.1 |
| Component: | General | Keywords: | has-patch |
| Focuses: | Cc: |
Description
After pressing the button to insert an image nothing happens. There was only a white window which was never closed.
I've found out the following problem in file "/wp-admin/js/media-upload.js":
// send html to the post editor
function send_to_editor(h) {
var win = window.opener ? window.opener : window.dialogArguments;
if ( !win )
win = top;
...
“win” points to “/index.php” - but I think it should point to “/wp-admin/post-new.php”. So I've changed the code:
// send html to the post editor
function send_to_editor(h) {
/*
var win = window.opener ? window.opener : window.dialogArguments;
if ( !win )
win = top;
*/
var win = parent;
...
After this changes it works fine in Firefox! I don't know why it works with the original code in Opera and not in Firefox. With the modified code it works in both browsers!
Attachments (1)
Change History (8)
Note: See
TracTickets for help on using
tickets.
Verified and okay. He's right. Using the latest Mozilla Firefox 2.0.0.14 and Wordpress 2.5.1 I got these insert issues. In Wordpress 2.5, all was fine. Editing the file as he explains works. I hope this fix get implemented in the next update.