Changeset 27320
- Timestamp:
- 02/27/2014 09:37:36 PM (11 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media-editor.js
r27317 r27320 633 633 insert: function( html ) { 634 634 var editor, 635 hasTinymce = ! _.isUndefined( tinymce ),636 hasQuicktags = ! _.isUndefined( QTags ),635 hasTinymce = ! _.isUndefined( window.tinymce ), 636 hasQuicktags = ! _.isUndefined( window.QTags ), 637 637 wpActiveEditor = window.wpActiveEditor; 638 638 … … 799 799 800 800 // If that doesn't work, fall back to `tinymce.activeEditor.id`. 801 if ( ! id && ! _.isUndefined( tinymce ) && tinymce.activeEditor ) {801 if ( ! id && ! _.isUndefined( window.tinymce ) && tinymce.activeEditor ) { 802 802 id = tinymce.activeEditor.id; 803 803 } … … 930 930 /* 931 931 // Save a bookmark of the caret position in IE. 932 if ( ! _.isUndefined( tinymce ) ) {932 if ( ! _.isUndefined( window.tinymce ) ) { 933 933 editor = tinymce.get( id ); 934 934 -
trunk/src/wp-includes/js/mediaelement/wp-playlist.js
r27239 r27320 1 /*globals window, document, $, jQuery*/1 /*globals window, document, jQuery, _, Backbone, _wpmejsSettings */ 2 2 3 3 (function ($, _, Backbone) { … … 33 33 _.bindAll( this, 'bindPlayer', 'ended', 'clickTrack' ); 34 34 35 if ( typeof _wpmejsSettings !== 'undefined') {35 if ( ! _.isUndefined( window._wpmejsSettings ) ) { 36 36 settings.pluginPath = _wpmejsSettings.pluginPath; 37 37 } … … 48 48 } 49 49 dimensions = this.current.get( 'dimensions' ).resized; 50 this.playerNode.attr( 'width', dimensions.width ); 51 this.playerNode.attr( 'height', dimensions.height ); 50 this.playerNode.attr( dimensions ); 52 51 } else { 53 52 if ( ! this.data.images ) { -
trunk/src/wp-includes/media.php
r27318 r27320 1118 1118 $data['tracks'] = $tracks; 1119 1119 1120 $safe_type = esc_attr( $ safe_type );1120 $safe_type = esc_attr( $type ); 1121 1121 $safe_style = esc_attr( $style ); 1122 1122
Note: See TracChangeset
for help on using the changeset viewer.