Skip to content

Commit a5bf986

Browse files
author
azaozz
committed
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. Built from https://develop.svn.wordpress.org/trunk@37597
1 parent 8cc11af commit a5bf986

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

wp-includes/js/tinymce/plugins/wpview/plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
tinymce.PluginManager.add( 'wpview', function( editor ) {
66
function noop () {}
77

8-
if ( ! wp || ! wp.mce ) {
8+
if ( ! wp || ! wp.mce || ! wp.mce.views ) {
99
return {
1010
getView: noop
1111
};

wp-includes/js/tinymce/plugins/wpview/plugin.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
2 Bytes
Binary file not shown.

wp-includes/version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* @global string $wp_version
66
*/
7-
$wp_version = '4.6-alpha-37596';
7+
$wp_version = '4.6-alpha-37597';
88

99
/**
1010
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

0 commit comments

Comments
 (0)