Changeset 4611
- Timestamp:
- 12/05/2006 10:27:02 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/upload-js.php
r4605 r4611 73 73 params.ID = ''; 74 74 params.action = ''; 75 h += "<a href='" + this.urlData[0] + '?' + params.toQueryString() + "' title='<?php echo wp_specialchars(__('Browse your files'), 1); ?>' class='back'> echo wp_specialchars(__('« Back'), 1);</a>";75 h += "<a href='" + this.urlData[0] + '?' + params.toQueryString() + "' title='<?php echo wp_specialchars(__('Browse your files'), 1); ?>' class='back'><?php echo wp_specialchars(__('« Back'), 1); ?></a>"; 76 76 } else { 77 77 h += "<a href='#' onclick='return theFileList.cancelView();' title='<?php echo wp_specialchars(__('Browse your files'), 1); ?>' class='back'><?php echo wp_specialchars(__('« Back'), 1) ?></a>"; … … 79 79 h += "<div id='file-title'>" 80 80 if ( !this.currentImage.isImage ) 81 h += "<h2><a href='" + this.currentImage.srcBase + this.currentImage.src + "' onclick='return false;' title='<?php echo wp_specialchars(__('Direct link to file'), 1); ?>' >" + this.currentImage.title + "</a></h2>";81 h += "<h2><a href='" + this.currentImage.srcBase + this.currentImage.src + "' onclick='return false;' title='<?php echo wp_specialchars(__('Direct link to file'), 1); ?>'" + this.currentImage.title + "</a></h2>"; 82 82 else 83 83 h += "<h2>" + this.currentImage.title + "</h2>"; … … 88 88 h += "<div id='upload-file-view' class='alignleft'>"; 89 89 if ( this.currentImage.isImage ) { 90 h += "<a href='" + this.currentImage.srcBase + this.currentImage.src + "' onclick='return false;' title='<?php echo wp_specialchars(__('Direct link to file'), 1); ?> >";90 h += "<a href='" + this.currentImage.srcBase + this.currentImage.src + "' onclick='return false;' title='<?php echo wp_specialchars(__('Direct link to file'), 1); ?>'>"; 91 91 h += "<img src='" + ( this.currentImage.thumb ? this.currentImage.thumb : this.currentImage.src ) + "' alt='" + this.currentImage.title + "' width='" + this.currentImage.width + "' height='" + this.currentImage.height + "' />"; 92 92 h += "</a>"; … … 135 135 params.ID = ''; 136 136 params.action = ''; 137 h += "<a href='" + this.urlData[0] + '?' + params.toQueryString() + "' title='<?php echo wp_specialchars(__('Browse your files'), 1); ?>' class='back'> « <?php echo wp_specialchars(__('Back'), 1); ?></a>";138 } else { 139 h += "<a href='#' onclick='return theFileList.cancelView();' title='<?php echo wp_specialchars(__('Browse your files'), 1); ?>' class='back'> « <?php echo wp_specialchars(__('Back'), 1); ?></a>";137 h += "<a href='" + this.urlData[0] + '?' + params.toQueryString() + "' title='<?php echo wp_specialchars(__('Browse your files'), 1); ?>' class='back'><?php echo wp_specialchars(__('« Back'), 1); ?></a>"; 138 } else { 139 h += "<a href='#' onclick='return theFileList.cancelView();' title='<?php echo wp_specialchars(__('Browse your files'), 1); ?>' class='back'><?php echo wp_specialchars(__('« Back'), 1); ?></a>"; 140 140 } 141 141 h += "<div id='file-title'>" … … 245 245 246 246 deleteFile: function(id) { 247 if ( confirm("<?php printf( wp_specialchars(__("Are you sure you want to delete the file '%s'?\nClick ok to delete or cancel to go back."), 1), '" + 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 + "'); ?>") ) { 248 248 $('action-value').value = 'delete'; 249 249 $('upload-file').submit();
Note: See TracChangeset
for help on using the changeset viewer.