Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#29373 closed defect (bug) (invalid)

JS error in build (media)

Reported by: iseulde's profile iseulde Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Media Keywords:
Focuses: javascript Cc:

Description

To reproduce, rebuild WP, turn off SCRIPT_DEBUG and go to the media library or post screen:

[Error] TypeError: 'undefined' is not an object (evaluating 'wp.media.view.settings.post.id')
(anonymous function) (load-scripts.php, line 630)

The error happens here:

}, wp.media.playlist = new wp.media.collection({
        tag: "playlist",
        editTitle: f.editPlaylistTitle,
        defaults: {
            id: wp.media.view.settings.post.id,
            style: "light",
            tracklist: !0,
            tracknumbers: !0,
            images: !0,
            artists: !0,
            type: "audio"
        }
    })

Attachments (1)

media-audiovideo.min.js (22.0 KB) - added by iseulde 10 years ago.

Download all attachments as: .zip

Change History (2)

#1 @iseulde
10 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed
  • Version trunk deleted

Sorry, I accidentally redownloaded WP which added all the minified files and I ended up with minified files that contained everything twice. And my editor doesn't show them... Oops. :)

Note: See TracTickets for help on using tickets.