Ticket #3378: 3378.diff
File 3378.diff, 1.8 KB (added by , 18 years ago) |
---|
-
wp-includes/script-loader.php
30 30 $this->add( 'admin-comments', '/wp-admin/edit-comments.js', array('listman'), '3847' ); 31 31 $this->add( 'admin-users', '/wp-admin/users.js', array('listman'), '3684' ); 32 32 $this->add( 'xfn', '/wp-admin/xfn.js', false, '3517' ); 33 $this->add( 'upload', '/wp-admin/upload-js.php', array('prototype'), ' 4466' );33 $this->add( 'upload', '/wp-admin/upload-js.php', array('prototype'), '####' ); 34 34 } 35 35 } 36 36 -
wp-admin/upload-js.php
233 233 if ( !win ) 234 234 win = top; 235 235 tinyMCE = win.tinyMCE; 236 if ( typeof tinyMCE != 'undefined' && tinyMCE.getInstanceById('content') ) 237 win.tinyMCE.execCommand('mceInsertContent', false, h); 238 else 236 if ( typeof tinyMCE != 'undefined' && tinyMCE.getInstanceById('content') ) { 237 tinyMCE.selectedInstance.getWin().focus(); 238 tinyMCE.execCommand('mceInsertContent', false, h); 239 } else 239 240 win.edInsertContent(win.edCanvas, h); 240 241 if ( !this.ID ) 241 242 this.cancelView(); … … 243 244 }, 244 245 245 246 deleteFile: function(id) { 246 if ( confirm("<?php printf( addslashes(__("Are you sure you want to delete the file %s?\nClick ok to delete or cancel to go back.")), '" + this.currentImage.title + "'); ?>") {247 if ( confirm("<?php printf(js_escape(__("Are you sure you want to delete the file '%s'?\nClick ok to delete or cancel to go back.")), '" + this.currentImage.title + "'); ?>") ) { 247 248 $('action-value').value = 'delete'; 248 249 $('upload-file').submit(); 249 250 return true;