Make WordPress Core

Changeset 37597


Ignore:
Timestamp:
05/30/2016 10:04:18 PM (10 years ago)
Author:
azaozz
Message:

TinyMCE: check if wp.mce.views exists before loading the wpview plugin. Fixes a js error when the rest of the media scripts are not loaded.

Fixes #36977.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/tinymce/plugins/wpview/plugin.js

    r37446 r37597  
    66                function noop () {}
    77
    8                 if ( ! wp || ! wp.mce ) {
     8                if ( ! wp || ! wp.mce || ! wp.mce.views ) {
    99                        return {
    1010                                getView: noop
Note: See TracChangeset for help on using the changeset viewer.