mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Let us pass jshint:core
.
Built from https://develop.svn.wordpress.org/trunk@27693 git-svn-id: http://core.svn.wordpress.org/trunk@27532 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5eef57ec0e
commit
d85ac5b841
@ -17,7 +17,7 @@ var WidgetCustomizer = ( function ($) {
|
||||
save_btn_tooltip: '',
|
||||
remove_btn_label: '',
|
||||
remove_btn_tooltip: '',
|
||||
error: '',
|
||||
error: ''
|
||||
},
|
||||
available_widgets: [], // available widgets for instantiating
|
||||
registered_widgets: [], // all widgets registered
|
||||
|
@ -136,7 +136,7 @@
|
||||
extendedModel: function() {
|
||||
var c = this.model.get('collection');
|
||||
return _.extend(this.model.toJSON(), {
|
||||
type: c.type,
|
||||
type: c.type
|
||||
});
|
||||
},
|
||||
|
||||
|
@ -402,9 +402,9 @@ jQuery(document).ready(function($){
|
||||
uploader_init = function() {
|
||||
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)
|
||||
if ( ! isIE && 'flash' === plupload.predictRuntime( wpUploaderInit ) &&
|
||||
( ! wpUploaderInit.required_features || ! wpUploaderInit.required_features.hasOwnProperty( 'send_binary_string' ) ) ) {
|
||||
// Make sure flash sends cookies (seems in IE it does whitout switching to urlstream mode)
|
||||
if ( ! isIE && 'flash' === plupload.predictRuntime( wpUploaderInit ) &&
|
||||
( ! wpUploaderInit.required_features || ! wpUploaderInit.required_features.hasOwnProperty( 'send_binary_string' ) ) ) {
|
||||
|
||||
wpUploaderInit.required_features = wpUploaderInit.required_features || {};
|
||||
wpUploaderInit.required_features.send_binary_string = true;
|
||||
|
@ -86,9 +86,9 @@ window.wp = window.wp || {};
|
||||
return;
|
||||
}
|
||||
|
||||
// Make sure flash sends cookies (seems in IE it does without switching to urlstream mode)
|
||||
if ( ! isIE && 'flash' === plupload.predictRuntime( this.plupload ) &&
|
||||
( ! this.plupload.required_features || ! this.plupload.required_features.hasOwnProperty( 'send_binary_string' ) ) ) {
|
||||
// Make sure flash sends cookies (seems in IE it does without switching to urlstream mode)
|
||||
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 || {};
|
||||
this.plupload.required_features.send_binary_string = true;
|
||||
|
@ -192,7 +192,7 @@ tinymce.PluginManager.add( 'wpeditimage', function( editor ) {
|
||||
|
||||
html = createImageAndLink( imageData, 'html' );
|
||||
|
||||
width = parseInt( imageData.width );
|
||||
width = parseInt( imageData.width, 10 );
|
||||
|
||||
if ( ! editor.getParam( 'wpeditimage_html5_captions' ) ) {
|
||||
width += 10;
|
||||
|
File diff suppressed because one or more lines are too long
Binary file not shown.
Loading…
Reference in New Issue
Block a user