Let us pass jshint:core
.
git-svn-id: https://develop.svn.wordpress.org/trunk@27693 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
05f0bcabec
commit
98921c5ca0
@ -17,7 +17,7 @@ var WidgetCustomizer = ( function ($) {
|
|||||||
save_btn_tooltip: '',
|
save_btn_tooltip: '',
|
||||||
remove_btn_label: '',
|
remove_btn_label: '',
|
||||||
remove_btn_tooltip: '',
|
remove_btn_tooltip: '',
|
||||||
error: '',
|
error: ''
|
||||||
},
|
},
|
||||||
available_widgets: [], // available widgets for instantiating
|
available_widgets: [], // available widgets for instantiating
|
||||||
registered_widgets: [], // all widgets registered
|
registered_widgets: [], // all widgets registered
|
||||||
|
@ -136,7 +136,7 @@
|
|||||||
extendedModel: function() {
|
extendedModel: function() {
|
||||||
var c = this.model.get('collection');
|
var c = this.model.get('collection');
|
||||||
return _.extend(this.model.toJSON(), {
|
return _.extend(this.model.toJSON(), {
|
||||||
type: c.type,
|
type: c.type
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -402,9 +402,9 @@ jQuery(document).ready(function($){
|
|||||||
uploader_init = function() {
|
uploader_init = function() {
|
||||||
var isIE = navigator.userAgent.indexOf('Trident/') != -1 || navigator.userAgent.indexOf('MSIE ') != -1;
|
var isIE = navigator.userAgent.indexOf('Trident/') != -1 || navigator.userAgent.indexOf('MSIE ') != -1;
|
||||||
|
|
||||||
// Make sure flash sends cookies (seems in IE it does whitout switching to urlstream mode)
|
// Make sure flash sends cookies (seems in IE it does whitout switching to urlstream mode)
|
||||||
if ( ! isIE && 'flash' === plupload.predictRuntime( wpUploaderInit ) &&
|
if ( ! isIE && 'flash' === plupload.predictRuntime( wpUploaderInit ) &&
|
||||||
( ! wpUploaderInit.required_features || ! wpUploaderInit.required_features.hasOwnProperty( 'send_binary_string' ) ) ) {
|
( ! wpUploaderInit.required_features || ! wpUploaderInit.required_features.hasOwnProperty( 'send_binary_string' ) ) ) {
|
||||||
|
|
||||||
wpUploaderInit.required_features = wpUploaderInit.required_features || {};
|
wpUploaderInit.required_features = wpUploaderInit.required_features || {};
|
||||||
wpUploaderInit.required_features.send_binary_string = true;
|
wpUploaderInit.required_features.send_binary_string = true;
|
||||||
|
@ -86,9 +86,9 @@ window.wp = window.wp || {};
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make sure flash sends cookies (seems in IE it does without switching to urlstream mode)
|
// Make sure flash sends cookies (seems in IE it does without switching to urlstream mode)
|
||||||
if ( ! isIE && 'flash' === plupload.predictRuntime( this.plupload ) &&
|
if ( ! isIE && 'flash' === plupload.predictRuntime( this.plupload ) &&
|
||||||
( ! this.plupload.required_features || ! this.plupload.required_features.hasOwnProperty( 'send_binary_string' ) ) ) {
|
( ! this.plupload.required_features || ! this.plupload.required_features.hasOwnProperty( 'send_binary_string' ) ) ) {
|
||||||
|
|
||||||
this.plupload.required_features = this.plupload.required_features || {};
|
this.plupload.required_features = this.plupload.required_features || {};
|
||||||
this.plupload.required_features.send_binary_string = true;
|
this.plupload.required_features.send_binary_string = true;
|
||||||
|
@ -192,7 +192,7 @@ tinymce.PluginManager.add( 'wpeditimage', function( editor ) {
|
|||||||
|
|
||||||
html = createImageAndLink( imageData, 'html' );
|
html = createImageAndLink( imageData, 'html' );
|
||||||
|
|
||||||
width = parseInt( imageData.width );
|
width = parseInt( imageData.width, 10 );
|
||||||
|
|
||||||
if ( ! editor.getParam( 'wpeditimage_html5_captions' ) ) {
|
if ( ! editor.getParam( 'wpeditimage_html5_captions' ) ) {
|
||||||
width += 10;
|
width += 10;
|
||||||
|
Loading…
Reference in New Issue
Block a user