Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#28824 closed defect (bug) (invalid)

Broken JavaScript in featured-image-upload.js; stop execution of JS

Reported by: paulschreiber's profile paulschreiber Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.0
Component: General Keywords:
Focuses: javascript, administration Cc:


JavaScript on some admin pages doesn't work because an error in featured-image-upload.js stops execution.

Here's the backtrace in from Safari.

TypeError: 'undefined' is not an object (evaluating '')
media_upload (featured-image-upload.js, line 5)
(anonymous function) (featured-image-upload.js, line 27)
j (load-scripts.php, line 2)
fireWith (load-scripts.php, line 2)
ready (load-scripts.php, line 2)
J (load-scripts.php, line 2)

The line in question is

_orig_send_attachment =;

If I set a breakpoint there, wp and are objects, but is undefined.

1 Go to /wp-admin/post.php?post=XXXX&action=edit
2 Click Add Media

Add Media lightbox appears

No visible change. Error in JS console.

Reproduced in 4.0b1 and 4.0-alpha-20140710.
Reproduced in Chrome 35 and Safari 7.

Change History (2)

#1 @paulschreiber
10 years ago

  • Resolution set to invalid
  • Status changed from new to closed

#2 @DrewAPicture
10 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.