Make WordPress Core

Changeset 28370


Ignore:
Timestamp:
05/11/2014 06:24:58 AM (12 years ago)
Author:
wonderboymusic
Message:

Allow users to set overrides for MediaElement instances by always passing _wpmejsSettings instead of just _wpmejsSettings.pluginPath.

Props Otto42 for the initial patch.
Fixes #25243.

Location:
trunk/src/wp-includes/js
Files:
3 edited

Legend:

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

    r28364 r28370  
    77
    88        if ( ! _.isUndefined( window._wpmejsSettings ) ) {
    9                 baseSettings.pluginPath = _wpmejsSettings.pluginPath;
     9                baseSettings = _wpmejsSettings;
    1010        }
    1111
  • trunk/src/wp-includes/js/mediaelement/wp-mediaelement.js

    r28363 r28370  
    1313
    1414                if ( typeof _wpmejsSettings !== 'undefined' ) {
    15                         settings.pluginPath = _wpmejsSettings.pluginPath;
     15                        settings = _wpmejsSettings;
    1616                }
    1717
  • trunk/src/wp-includes/js/mediaelement/wp-playlist.js

    r28171 r28370  
    3535
    3636                        if ( ! _.isUndefined( window._wpmejsSettings ) ) {
    37                                 this.settings.pluginPath = _wpmejsSettings.pluginPath;
     37                                this.settings = _wpmejsSettings;
    3838                        }
    3939                        this.settings.success = this.bindPlayer;
Note: See TracChangeset for help on using the changeset viewer.