Make WordPress Core

Ticket #30029: 30029.diff

File 30029.diff, 480 bytes (added by nofearinc, 7 years ago)

use settings.success if already defined in _wpmejsSettings

  • wp-includes/js/mediaelement/wp-mediaelement.js

     
    1111                        settings = _wpmejsSettings;
    1212                }
    1313
    14                 settings.success = function (mejs) {
     14                settings.success = settings.success || function (mejs) {
    1515                        var autoplay, loop;
    1616
    1717                        if ( 'flash' === mejs.pluginType ) {