WordPress.org

Make WordPress Core

Opened 8 months ago

Closed 8 months ago

#25078 closed defect (bug) (fixed)

Unwanted global variable in media-models.js

Reported by: greuben Owned by: SergeyBiryukov
Milestone: 3.7 Priority: normal
Severity: minor Version: 3.5
Component: Media Keywords: has-patch
Focuses: Cc:

Description

How to reproduce?

  1. Open media library (browser)
  2. args variable is exposed to global space in line 696 of media-models.js

Attachments (1)

fix.diff (462 bytes) - added by greuben 8 months ago.

Download all attachments as: .zip

Change History (3)

greuben8 months ago

comment:1 SergeyBiryukov8 months ago

  • Keywords has-patch added
  • Milestone changed from Awaiting Review to 3.7

comment:2 SergeyBiryukov8 months ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 25080:

Declare args as a local variable. props greuben. fixes #25078.

Note: See TracTickets for help on using tickets.