Make WordPress Core

Changeset 34254


Ignore:
Timestamp:
09/17/2015 12:09:40 AM (10 years ago)
Author:
wonderboymusic
Message:

Media JS: ensure that wp.media.frame (a static reference to the "current" Frame) is reset when a cached frame is opened.

Fixes #33458.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/media-editor.js

    r32247 r34254  
    671671        frame: function() {
    672672            if ( this._frame ) {
     673                wp.media.frame = this._frame;
    673674                return this._frame;
    674675            }
     
    10681069            }
    10691070
     1071            wp.media.frame = workflow;
     1072
    10701073            return workflow.open();
    10711074        },
Note: See TracChangeset for help on using the changeset viewer.