Changeset 4535
- Timestamp:
- 11/28/2006 09:51:13 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 15 edited
-
wp-admin/cat-js.php (modified) (1 diff)
-
wp-admin/comment.php (modified) (6 diffs)
-
wp-admin/dbx-admin-key-js.php (modified) (2 diffs)
-
wp-admin/edit-comments.php (modified) (3 diffs)
-
wp-admin/edit-form-advanced.php (modified) (1 diff)
-
wp-admin/edit-page-form.php (modified) (1 diff)
-
wp-admin/import/blogger.php (modified) (1 diff)
-
wp-admin/link-add.php (modified) (1 diff)
-
wp-admin/link-manager.php (modified) (2 diffs)
-
wp-admin/moderation.php (modified) (1 diff)
-
wp-admin/upload-js.php (modified) (3 diffs)
-
wp-includes/bookmark-template.php (modified) (1 diff)
-
wp-includes/js/autosave.js.php (modified) (3 diffs)
-
wp-includes/js/list-manipulation-js.php (modified) (2 diffs)
-
wp-includes/js/wp-ajax-js.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/cat-js.php
r4187 r4535 9 9 if ( !jaxcat ) 10 10 return false; 11 jaxcat.update('<span id="ajaxcat"><input type="text" name="newcat" id="newcat" size="16" autocomplete="off"/><input type="button" name="Button" id="catadd" value="<?php _e('Add'); ?>"/><span id="howto"><?php _e('Separate multiple categories with commas.'); ?></span></span>');11 jaxcat.update('<span id="ajaxcat"><input type="text" name="newcat" id="newcat" size="16" autocomplete="off"/><input type="button" name="Button" id="catadd" value="<?php echo js_escape(__('Add')); ?>"/><span id="howto"><?php js_escape(__('Separate multiple categories with commas.')); ?></span></span>'); 12 12 $('newcat').onkeypress = function(e) { return killSubmit("catList.ajaxAdder('category','jaxcat');", e); }; 13 13 $('catadd').onclick = function() { catList.ajaxAdder('category', 'jaxcat'); }; -
trunk/wp-admin/comment.php
r4480 r4535 19 19 20 20 if ( ! $comment = get_comment($comment) ) 21 wp_die( sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'javascript:history.go(-1)'));21 wp_die(__('Oops, no comment with this ID.').sprintf(' <a href="%s">'.__('Go back').'</a>!', 'javascript:history.go(-1)')); 22 22 23 23 if ( !current_user_can('edit_post', $comment->comment_post_ID) ) … … 41 41 42 42 if ( ! $comment = get_comment($comment) ) 43 wp_die( sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php'));43 wp_die(__('Oops, no comment with this ID.').sprintf(' <a href="%s">'.__('Go back').'</a>!', 'edit.php')); 44 44 45 45 if ( !current_user_can('edit_post', $comment->comment_post_ID) ) … … 50 50 <div class="narrow"> 51 51 <?php if ( 'spam' == $_GET['dt'] ) { ?> 52 <p><?php _e('<strong>Caution:</strong>You are about to mark the following comment as spam:'); ?></p>52 <p><?php echo '<strong>'.__('Caution:').'</strong> '.__('You are about to mark the following comment as spam:'); ?></p> 53 53 <?php } elseif ( 'cdc' == $action ) { ?> 54 <p><?php _e('<strong>Caution:</strong>You are about to delete the following comment:'); ?></p>54 <p><?php echo '<strong>'.__('Caution:').'</strong> '.__('You are about to delete the following comment:'); ?></p> 55 55 <?php } else { ?> 56 <p><?php _e('<strong>Caution:</strong>You are about to approve the following comment:'); ?></p>56 <p><?php echo '<strong>'.__('Caution:').'</strong> '.__('You are about to approve the following comment:'); ?></p> 57 57 <?php } ?> 58 58 … … 117 117 118 118 if ( ! $comment = get_comment($comment) ) 119 wp_die( sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit-comments.php'));119 wp_die(__('Oops, no comment with this ID.').sprintf(' <a href="%s">'.__('Go back').'</a>!', 'edit-comments.php')); 120 120 121 121 if ( !current_user_can('edit_post', $comment->comment_post_ID) ) … … 146 146 147 147 if ( ! $comment = get_comment($comment) ) 148 wp_die( sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php'));148 wp_die(__('Oops, no comment with this ID.').sprintf(' <a href="%s">'.__('Go back').'</a>!', 'edit.php')); 149 149 150 150 if ( !current_user_can('edit_post', $comment->comment_post_ID) ) … … 172 172 173 173 if ( ! $comment = get_comment($comment) ) 174 wp_die( sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php'));174 wp_die(__('Oops, no comment with this ID.').sprintf(' <a href="%s">'.__('Go back').'</a>!', 'edit.php')); 175 175 176 176 if ( !current_user_can('edit_post', $comment->comment_post_ID) ) -
trunk/wp-admin/dbx-admin-key-js.php
r4495 r4535 33 33 'yes', // include open/close toggle buttons ['yes'|'no'] 34 34 'closed', // default state ['open'|'closed'] 35 ' open', // word for "open", as in "open this box"36 ' close', // word for "close", as in "close this box"37 ' click-down and drag to move this box', // sentence for "move this box" by mouse38 ' click to %toggle% this box', // pattern-match sentence for "(open|close) this box" by mouse39 ' use the arrow keys to move this box', // sentence for "move this box" by keyboard40 ' , or press the enter key to %toggle% it', // pattern-match sentence-fragment for "(open|close) this box" by keyboard35 '<?php echo js_escape(__('open')); ?>', // word for "open", as in "open this box" 36 '<?php echo js_escape(__('close')); ?>', // word for "close", as in "close this box" 37 '<?php echo js_escape(__('click-down and drag to move this box')); ?>', // sentence for "move this box" by mouse 38 '<?php echo js_escape(__('click to %toggle% this box')); ?>', // pattern-match sentence for "(open|close) this box" by mouse 39 '<?php echo js_escape(__('use the arrow keys to move this box')); ?>', // sentence for "move this box" by keyboard 40 '<?php echo js_escape(__(', or press the enter key to %toggle% it')); ?>', // pattern-match sentence-fragment for "(open|close) this box" by keyboard 41 41 '%mytitle% [%dbxtitle%]' // pattern-match syntax for title-attribute conflicts 42 42 ); … … 58 58 'yes', // include open/close toggle buttons ['yes'|'no'] 59 59 'closed', // default state ['open'|'closed'] 60 ' open', // word for "open", as in "open this box"61 ' close', // word for "close", as in "close this box"62 ' click-down and drag to move this box', // sentence for "move this box" by mouse63 ' click to %toggle% this box', // pattern-match sentence for "(open|close) this box" by mouse64 ' use the arrow keys to move this box', // sentence for "move this box" by keyboard65 ' , or press the enter key to %toggle% it', // pattern-match sentence-fragment for "(open|close) this box" by keyboard60 '<?php echo js_escape(__('open')); ?>', // word for "open", as in "open this box" 61 '<?php echo js_escape(__('close')); ?>', // word for "close", as in "close this box" 62 '<?php echo js_escape(__('click-down and drag to move this box')); ?>', // sentence for "move this box" by mouse 63 '<?php echo js_escape(__('click to %toggle% this box')); ?>', // pattern-match sentence for "(open|close) this box" by mouse 64 '<?php echo js_escape(__('use the arrow keys to move this box')); ?>', // sentence for "move this box" by keyboard 65 '<?php echo js_escape(__(', or press the enter key to %toggle% it')); ?>', // pattern-match sentence-fragment for "(open|close) this box" by keyboard 66 66 '%mytitle% [%dbxtitle%]' // pattern-match syntax for title-attribute conflicts 67 67 ); -
trunk/wp-admin/edit-comments.php
r4495 r4535 158 158 if ( current_user_can('edit_post', $comment->comment_post_ID) ) { 159 159 echo " <a href='comment.php?action=editcomment&c=".$comment->comment_ID."'>" . __('Edit') . '</a>'; 160 echo ' | <a href="' . wp_nonce_url('comment.php?action=deletecomment&p=' . $comment->comment_post_ID . '&c=' . $comment->comment_ID, 'delete-comment_' . $comment->comment_ID) . '" onclick="return deleteSomething( \'comment\', ' . $comment->comment_ID . ', \'' . sprintf(__("You are about to delete this comment by "%s".\\n"Cancel" to stop, "OK" to delete."), js_escape($comment->comment_author)) . "', theCommentList );\">" . __('Delete') . '</a> ';160 echo ' | <a href="' . wp_nonce_url('comment.php?action=deletecomment&p=' . $comment->comment_post_ID . '&c=' . $comment->comment_ID, 'delete-comment_' . $comment->comment_ID) . '" onclick="return deleteSomething( \'comment\', ' . $comment->comment_ID . ', \'' . js_escape(sprintf(__("You are about to delete this comment by "%s".\\n"Cancel" to stop, "OK" to delete."), $comment->comment_author)) . "', theCommentList );\">" . __('Delete') . '</a> '; 161 161 if ( ('none' != $comment_status) && ( current_user_can('moderate_comments') ) ) { 162 162 echo '<span class="unapprove"> | <a href="' . wp_nonce_url('comment.php?action=unapprovecomment&p=' . $comment->comment_post_ID . '&c=' . $comment->comment_ID, 'unapprove-comment_' . $comment->comment_ID) . '" onclick="return dimSomething( \'comment\', ' . $comment->comment_ID . ', \'unapproved\', theCommentList );">' . __('Unapprove') . '</a> </span>'; 163 163 echo '<span class="approve"> | <a href="' . wp_nonce_url('comment.php?action=approvecomment&p=' . $comment->comment_post_ID . '&c=' . $comment->comment_ID, 'approve-comment_' . $comment->comment_ID) . '" onclick="return dimSomething( \'comment\', ' . $comment->comment_ID . ', \'unapproved\', theCommentList );">' . __('Approve') . '</a> </span>'; 164 164 } 165 echo " | <a href=\"" . wp_nonce_url("comment.php?action=deletecomment&dt=spam&p=" . $comment->comment_post_ID . "&c=" . $comment->comment_ID, 'delete-comment_' . $comment->comment_ID) . "\" onclick=\"return deleteSomething( 'comment-as-spam', $comment->comment_ID, '" . sprintf(__("You are about to mark as spam this comment by "%s".\\n"Cancel" to stop, "OK" to mark as spam."), js_escape($comment->comment_author)) . "', theCommentList );\">" . __('Spam') . "</a> ";165 echo " | <a href=\"" . wp_nonce_url("comment.php?action=deletecomment&dt=spam&p=" . $comment->comment_post_ID . "&c=" . $comment->comment_ID, 'delete-comment_' . $comment->comment_ID) . "\" onclick=\"return deleteSomething( 'comment-as-spam', $comment->comment_ID, '" . js_escape(sprintf(__("You are about to mark as spam this comment by "%s".\\n"Cancel" to stop, "OK" to mark as spam."), $comment->comment_author)) . "', theCommentList );\">" . __('Spam') . "</a> "; 166 166 } 167 167 $post = get_post($comment->comment_post_ID); … … 224 224 echo "<a href='comment.php?action=editcomment&c=$comment->comment_ID' class='edit'>" . __('Edit') . "</a>"; } ?></td> 225 225 <td><?php if ( current_user_can('edit_post', $comment->comment_post_ID) ) { 226 echo "<a href=\"comment.php?action=deletecomment&p=".$comment->comment_post_ID."&c=".$comment->comment_ID."\" onclick=\"return deleteSomething( 'comment', $comment->comment_ID, '" . sprintf(__("You are about to delete this comment by "%s".\\n"Cancel" to stop, "OK" to delete."), js_escape($comment->comment_author )) . "', theCommentList );\" class='delete'>" . __('Delete') . "</a> ";226 echo "<a href=\"comment.php?action=deletecomment&p=".$comment->comment_post_ID."&c=".$comment->comment_ID."\" onclick=\"return deleteSomething( 'comment', $comment->comment_ID, '" . js_escape(sprintf(__("You are about to delete this comment by "%s".\\n"Cancel" to stop, "OK" to delete."), $comment->comment_author )) . "', theCommentList );\" class='delete'>" . __('Delete') . "</a> "; 227 227 } ?></td> 228 228 </tr> … … 230 230 } // end foreach 231 231 ?></table> 232 <p class="submit"><input type="submit" name="delete_button" class="delete" value="<?php _e('Delete Checked Comments »') ?>" onclick="var numchecked = getNumChecked(document.getElementById('deletecomments')); if(numchecked < 1) { alert('<?php _e("Please select some comments to delete"); ?>'); return false } return confirm('<?php printf(__("You are about to delete %s comments permanently \\n \'Cancel\' to stop, \'OK\' to delete."), "' + numchecked + '"); ?>')" />233 <input type="submit" name="spam_button" value="<?php _e('Mark Checked Comments as Spam »') ?>" onclick="return confirm('<?php _e("You are about to mark these comments as spam \\n \'Cancel\' to stop, \'OK\' to mark as spam.")?>')" /></p>232 <p class="submit"><input type="submit" name="delete_button" class="delete" value="<?php _e('Delete Checked Comments »') ?>" onclick="var numchecked = getNumChecked(document.getElementById('deletecomments')); if(numchecked < 1) { alert('<?php echo js_escape(__("Please select some comments to delete")); ?>'); return false } return confirm('<?php echo js_escape(sprintf(__("You are about to delete %s comments permanently \\n \'Cancel\' to stop, \'OK\' to delete.")), "' + numchecked + '"); ?>')" /> 233 <input type="submit" name="spam_button" value="<?php _e('Mark Checked Comments as Spam »') ?>" onclick="return confirm('<?php echo js_escape(__("You are about to mark these comments as spam \\n \'Cancel\' to stop, \'OK\' to mark as spam.")); ?>')" /></p> 234 234 </form> 235 235 <div id="ajax-response"></div> -
trunk/wp-admin/edit-form-advanced.php
r4495 r4535 245 245 246 246 <?php if ('edit' == $action) : $delete_nonce = wp_create_nonce( 'delete-post_' . $post_ID ); ?> 247 <input name="deletepost" class="button delete" type="submit" id="deletepost" tabindex="10" value="<?php _e('Delete this post') ?>" <?php echo "onclick=\"if ( confirm('" . sprintf(__("You are about to delete this post \'%s\'\\n \'Cancel\' to stop, \'OK\' to delete."), js_escape($post->post_title)) . "') ) { document.forms.post._wpnonce.value = '$delete_nonce'; return true;}return false;\""; ?> />247 <input name="deletepost" class="button delete" type="submit" id="deletepost" tabindex="10" value="<?php _e('Delete this post') ?>" <?php echo "onclick=\"if ( confirm('" . js_escape(sprintf(__("You are about to delete this post \'%s\'\\n \'Cancel\' to stop, \'OK\' to delete."), $post->post_title )) . "') ) { document.forms.post._wpnonce.value = '$delete_nonce'; return true;}return false;\""; ?> /> 248 248 <?php endif; ?> 249 249 -
trunk/wp-admin/edit-page-form.php
r4495 r4535 189 189 $delete_nonce = wp_create_nonce( 'delete-page_' . $post_ID ); 190 190 if ( current_user_can('delete_page', $post->ID) ) ?> 191 <input name="deletepost" class="button delete" type="submit" id="deletepost" tabindex="10" value="<?php _e('Delete this page') ?>" <?php echo "onclick=\"if ( confirm('" . sprintf(__("You are about to delete this page \'%s\'\\n \'Cancel\' to stop, \'OK\' to delete."), js_escape($post->post_title)) . "') ) { document.forms.post._wpnonce.value = '$delete_nonce'; return true;}return false;\""; ?> />191 <input name="deletepost" class="button delete" type="submit" id="deletepost" tabindex="10" value="<?php _e('Delete this page') ?>" <?php echo "onclick=\"if ( confirm('" . js_escape(sprintf(__("You are about to delete this page \'%s\'\\n \'Cancel\' to stop, \'OK\' to delete."), $post->post_title )) . "') ) { document.forms.post._wpnonce.value = '$delete_nonce'; return true;}return false;\""; ?> /> 192 192 <?php endif; ?> 193 193 </div> -
trunk/wp-admin/import/blogger.php
r4495 r4535 11 11 $welcome = __('Howdy! This importer allows you to import posts and comments from your Blogger account into your WordPress blog.'); 12 12 $noiframes = __('This feature requires iframe support.'); 13 $warning = __('This will delete everything saved by the Blogger importer except your posts and comments. Are you sure you want to do this?');13 $warning = js_escape(__('This will delete everything saved by the Blogger importer except your posts and comments. Are you sure you want to do this?')); 14 14 $reset = __('Reset this importer'); 15 15 $incompat = __('Your web server is not properly configured to use this importer. Please enable the CURL extension for PHP and then reload this page.'); -
trunk/wp-admin/link-add.php
r4499 r4535 30 30 <h3><?php _e('Add Link Bookmarklet'); ?></h3> 31 31 <p><?php _e('Right click on the following link and choose "Bookmark This Link..." to create an add link shortcut. Right now this only works on Mozilla or Netscape, but we’re working on it.'); ?></p> 32 <?php printf( __('<p><a href="%s" title="Link add bookmarklet">Link This</a></p>'), "javascript:void(linkmanpopup=window.open('" . get_option('siteurl') . "/wp-admin/link-add.php?action=popup&linkurl='+escape(location.href)+'&name='+escape(document.title),'LinkManager','scrollbars=yes,width=750,height=550,left=15,top=15,status=yes,resizable=yes'));linkmanpopup.focus();window.focus();linkmanpopup.focus();") ?>32 <?php printf('<p><a href="%s" title="'.__('Link add bookmarklet').'">'.__('Link This').'</a></p>'), "javascript:void(linkmanpopup=window.open('" . get_option('siteurl') . "/wp-admin/link-add.php?action=popup&linkurl='+escape(location.href)+'&name='+escape(document.title),'LinkManager','scrollbars=yes,width=750,height=550,left=15,top=15,status=yes,resizable=yes'));linkmanpopup.focus();window.focus();linkmanpopup.focus();") ?> 33 33 </div> 34 34 -
trunk/wp-admin/link-manager.php
r4499 r4535 162 162 163 163 echo '<td><a href="link.php?link_id='.$link->link_id.'&action=edit" class="edit">'.__('Edit').'</a></td>'; 164 echo '<td><a href="' . wp_nonce_url('link.php?link_id='.$link->link_id.'&action=delete', 'delete-bookmark_' . $link->link_id ) . '"'." onclick=\"return deleteSomething( 'link', $link->link_id , '". sprintf(__("You are about to delete the "%s" link to %s.\\n"Cancel" to stop, "OK" to delete."), js_escape($link->link_name), js_escape($link->link_url)).'\' );" class="delete">'.__('Delete').'</a></td>';164 echo '<td><a href="' . wp_nonce_url('link.php?link_id='.$link->link_id.'&action=delete', 'delete-bookmark_' . $link->link_id ) . '"'." onclick=\"return deleteSomething( 'link', $link->link_id , '".js_escape(sprintf(__("You are about to delete the "%s" link to %s.\\n"Cancel" to stop, "OK" to delete."), $link->link_name, $link->link_url )).'\' );" class="delete">'.__('Delete').'</a></td>'; 165 165 echo '<td align="center"><input type="checkbox" name="linkcheck[]" value="'.$link->link_id.'" /></td>'; 166 166 echo "\n </tr>\n"; … … 172 172 <div id="ajax-response"></div> 173 173 174 <p class="submit"><input type="submit" class="button" name="deletebookmarks" id="deletebookmarks" value="<?php _e('Delete Checked Links') ?> »" onclick="return confirm('<?php _e("You are about to delete these links permanently \\n \'Cancel\' to stop, \'OK\' to delete.")?>')" /></p>174 <p class="submit"><input type="submit" class="button" name="deletebookmarks" id="deletebookmarks" value="<?php _e('Delete Checked Links') ?> »" onclick="return confirm('<?php echo js_escape(__("You are about to delete these links permanently \\n \'Cancel\' to stop, \'OK\' to delete.")); ?>')" /></p> 175 175 </form> 176 176 </div> -
trunk/wp-admin/moderation.php
r4495 r4535 136 136 <p><?php comment_date('M j, g:i A'); ?> — [ <?php 137 137 echo '<a href="comment.php?action=editcomment&c='.$comment->comment_ID.'">' . __('Edit') . '</a> | '; 138 echo " <a href=\"post.php?action=deletecomment&p=".$comment->comment_post_ID."&comment=".$comment->comment_ID."\" onclick=\"return deleteSomething( 'comment', $comment->comment_ID, '" . sprintf(__("You are about to delete this comment by "%s".\\n"Cancel" to stop, "OK" to delete."), js_escape($comment->comment_author)) . "', theCommentList );\">" . __('Delete ') . "</a> | "; ?>138 echo " <a href=\"post.php?action=deletecomment&p=".$comment->comment_post_ID."&comment=".$comment->comment_ID."\" onclick=\"return deleteSomething( 'comment', $comment->comment_ID, '" . js_escape(sprintf(__("You are about to delete this comment by "%s".\\n"Cancel" to stop, "OK" to delete."), $comment->comment_author )) . "', theCommentList );\">" . __('Delete ') . "</a> | "; ?> 139 139 <?php 140 140 $post = get_post($comment->comment_post_ID); -
trunk/wp-admin/upload-js.php
r4510 r4535 98 98 h += "<table>"; 99 99 if ( this.currentImage.thumb ) { 100 h += "<tr><th style='padding-bottom:.5em'><?php echo addslashes(__('Show:')); ?></th><td style='padding-bottom:.5em'>";101 h += "<label for='display-thumb'><input type='radio' name='display' id='display-thumb' value='thumb' checked='checked' /> <?php echo addslashes(__('Thumbnail')); ?></label><br />";102 h += "<label for='display-full'><input type='radio' name='display' id='display-full' value='full' /> <?php echo addslashes(__('Full size')); ?></label>";100 h += "<tr><th style='padding-bottom:.5em'><?php echo js_escape(__('Show:')); ?></th><td style='padding-bottom:.5em'>"; 101 h += "<label for='display-thumb'><input type='radio' name='display' id='display-thumb' value='thumb' checked='checked' /> <?php echo js_escape(__('Thumbnail')); ?></label><br />"; 102 h += "<label for='display-full'><input type='radio' name='display' id='display-full' value='full' /> <?php echo js_escape(__('Full size')); ?></label>"; 103 103 h += "</td></tr>"; 104 104 } 105 105 106 h += "<tr><th><?php echo addslashes(__('Link to:')); ?></th><td>";107 h += "<label for='link-file'><input type='radio' name='link' id='link-file' value='file' checked='checked'/> <?php echo addslashes(__('File')); ?></label><br />";108 h += "<label for='link-page'><input type='radio' name='link' id='link-page' value='page' /> <?php echo addslashes(__('Page')); ?></label><br />";109 h += "<label for='link-none'><input type='radio' name='link' id='link-none' value='none' /> <?php echo addslashes(__('None')); ?></label>";106 h += "<tr><th><?php echo js_escape(__('Link to:')); ?></th><td>"; 107 h += "<label for='link-file'><input type='radio' name='link' id='link-file' value='file' checked='checked'/> <?php echo js_escape(__('File')); ?></label><br />"; 108 h += "<label for='link-page'><input type='radio' name='link' id='link-page' value='page' /> <?php echo js_escape(__('Page')); ?></label><br />"; 109 h += "<label for='link-none'><input type='radio' name='link' id='link-none' value='none' /> <?php echo js_escape(__('None')); ?></label>"; 110 110 h += "</td></tr>"; 111 111 112 112 h += "<tr><td colspan='2'><p class='submit'>"; 113 h += "<input type='button' class='button' name='send' onclick='theFileList.sendToEditor(" + id + ")' value='<?php echo addslashes(__('Send to editor')); ?> »' />";113 h += "<input type='button' class='button' name='send' onclick='theFileList.sendToEditor(" + id + ")' value='<?php echo js_escape(__('Send to editor »')); ?>' />"; 114 114 h += "</p></td></tr></table>"; 115 115 h += "</form>"; … … 135 135 params.ID = ''; 136 136 params.action = ''; 137 h += "<a href='" + this.urlData[0] + '?' + params.toQueryString() + "' title=' Browse your files' class='back'>« Back</a>";138 } else { 139 h += "<a href='#' onclick='return theFileList.cancelView();' title=' Browse your files' class='back'>« Back</a>";137 h += "<a href='" + this.urlData[0] + '?' + params.toQueryString() + "' title='<?php echo js_escape(__('Browse your files')); ?>' class='back'>« <?php echo js_escape(__('Back')); ?></a>"; 138 } else { 139 h += "<a href='#' onclick='return theFileList.cancelView();' title='<?php echo js_escape(__('Browse your files')); ?>' class='back'>« <?php echo js_escape(__('Back')); ?></a>"; 140 140 } 141 141 h += "<div id='file-title'>" 142 142 if ( !this.currentImage.isImage ) 143 h += "<h2><a href='" + this.currentImage.srcBase + this.currentImage.src + "' onclick='return false;' title=' Direct link to file'>" + this.currentImage.title + "</a></h2>";143 h += "<h2><a href='" + this.currentImage.srcBase + this.currentImage.src + "' onclick='return false;' title='<?php echo js_escape(__('Direct link to file')); ?>'>" + this.currentImage.title + "</a></h2>"; 144 144 else 145 145 h += "<h2>" + this.currentImage.title + "</h2>"; 146 146 h += " — <span>"; 147 h += "<a href='#' onclick='return theFileList.imageView(" + id + ");'> Insert</a>"147 h += "<a href='#' onclick='return theFileList.imageView(" + id + ");'><?php js_escape(__('Insert')); ?></a>" 148 148 h += "</span>"; 149 149 h += '</div>' 150 150 h += "<div id='upload-file-view' class='alignleft'>"; 151 151 if ( this.currentImage.isImage ) { 152 h += "<a href='" + this.currentImage.srcBase + this.currentImage.src + "' onclick='return false;' title=' Direct link to file'>";152 h += "<a href='" + this.currentImage.srcBase + this.currentImage.src + "' onclick='return false;' title='<?php echo js_escape(__('Direct link to file')); ?>'>"; 153 153 h += "<img src='" + ( this.currentImage.thumb ? this.currentImage.thumb : this.currentImage.src ) + "' alt='" + this.currentImage.title + "' width='" + this.currentImage.width + "' height='" + this.currentImage.height + "' />"; 154 154 h += "</a>"; … … 159 159 160 160 h += "<table><col /><col class='widefat' /><tr>" 161 h += "<th scope='row'><label for='url'> URL</label></th>";161 h += "<th scope='row'><label for='url'><?php echo js_escape(__('URL')); ?></label></th>"; 162 162 h += "<td><input type='text' id='url' class='readonly' value='" + this.currentImage.srcBase + this.currentImage.src + "' readonly='readonly' /></td>"; 163 163 h += "</tr><tr>"; 164 h += "<th scope='row'><label for='post_title'> Title</label></th>";164 h += "<th scope='row'><label for='post_title'><?php echo js_escape(__('Title')); ?></label></th>"; 165 165 h += "<td><input type='text' id='post_title' name='post_title' value='" + this.currentImage.title + "' /></td>"; 166 166 h += "</tr><tr>"; 167 h += "<th scope='row'><label for='post_content'> Description</label></th>";167 h += "<th scope='row'><label for='post_content'><?php echo js_escape(__('Description')); ?></label></th>"; 168 168 h += "<td><textarea name='post_content' id='post_content'>" + this.currentImage.description + "</textarea></td>"; 169 h += "</tr><tr id='buttons' class='submit'><td colspan='2'><input type='button' id='delete' name='delete' class='delete alignleft' value=' Delete File' onclick='theFileList.deleteFile(" + id + ");' />";169 h += "</tr><tr id='buttons' class='submit'><td colspan='2'><input type='button' id='delete' name='delete' class='delete alignleft' value='<?php echo js_escape(__('Delete File')); ?>' onclick='theFileList.deleteFile(" + id + ");' />"; 170 170 h += "<input type='hidden' name='from_tab' value='" + this.tab + "' />"; 171 171 h += "<input type='hidden' name='action' id='action-value' value='save' />"; 172 172 h += "<input type='hidden' name='ID' value='" + id + "' />"; 173 173 h += "<input type='hidden' name='_wpnonce' value='" + this.nonce + "' />"; 174 h += "<div class='submit'><input type='submit' value=' Save »' /></div>";174 h += "<div class='submit'><input type='submit' value='<?php echo js_escape(__('Save »')); ?>' /></div>"; 175 175 h += "</td></tr></table></form>"; 176 176 -
trunk/wp-includes/bookmark-template.php
r4527 r4535 108 108 if ( $show_updated ) 109 109 if (substr($row->link_updated_f, 0, 2) != '00') 110 $title .= ' ( Last updated' . date(get_option('links_updated_date_format'), $row->link_updated_f + (get_option('gmt_offset') * 3600)) . ')';110 $title .= ' ('.__('Last updated') . ' ' . date(get_option('links_updated_date_format'), $row->link_updated_f + (get_option('gmt_offset') * 3600)) . ')'; 111 111 112 112 if ( '' != $title ) -
trunk/wp-includes/js/autosave.js.php
r4512 r4535 39 39 40 40 if(isNaN(res)) { 41 message = "<?php _e('Error: '); ?>" + response;41 message = "<?php js_escape(__('Error: ')); ?>" + response; 42 42 } else { 43 message = "<?php _e('Saved at '); ?>" + autosave_cur_time();43 message = "<?php js_escape(__('Saved at ')); ?>" + autosave_cur_time(); 44 44 $('post_ID').name = "post_ID"; 45 45 $('post_ID').value = res; … … 61 61 62 62 function autosave_loading() { 63 $('autosave').innerHTML = "<?php _e('Saving Draft...'); ?>";63 $('autosave').innerHTML = "<?php js_escape(__('Saving Draft...')); ?>"; 64 64 } 65 65 … … 70 70 71 71 if(isNaN(res)) { 72 message = "<?php _e('Error: '); ?>" + response;72 message = "<?php js_escape(__('Error: ')); ?>" + response; 73 73 } else { 74 message = "<?php _e('Saved at '); ?>" + autosave_cur_time() + ".";74 message = "<?php js_escape(__('Saved at ')); ?>" + autosave_cur_time() + "."; 75 75 } 76 76 $('autosave').innerHTML = message; -
trunk/wp-includes/js/list-manipulation-js.php
r4458 r4535 1 1 <?php @require_once('../../wp-config.php'); cache_javascript_headers(); ?> 2 2 addLoadEvent(function(){theList=new listMan();}); 3 function deleteSomething(what,id,message,obj){if(!obj)obj=theList;if(!message)message="<?php printf( __('Are you sure you want to delete this %s?'),"'+what+'"); ?>";if(confirm(message))return obj.ajaxDelete(what,id);else return false;}3 function deleteSomething(what,id,message,obj){if(!obj)obj=theList;if(!message)message="<?php printf(js_escape(__('Are you sure you want to delete this %s?')),"'+what+'"); ?>";if(confirm(message))return obj.ajaxDelete(what,id);else return false;} 4 4 function dimSomething(what,id,dimClass,obj){if(!obj)obj=theList;return obj.ajaxDimmer(what,id,dimClass);} 5 5 … … 48 48 tempObj.showLink = id; 49 49 }); 50 ajaxAdd.myResponseElement.update(tempObj.showLink ? ( "<div id='jumplink' class='updated fade'><p><a href='#" + what + '-' + tempObj.showLink + "'><?php _e('Jump to new item'); ?></a></p></div>" ) : '');50 ajaxAdd.myResponseElement.update(tempObj.showLink ? ( "<div id='jumplink' class='updated fade'><p><a href='#" + what + '-' + tempObj.showLink + "'><?php js_escape(__('Jump to new item')); ?></a></p></div>" ) : ''); 51 51 } 52 52 if ( tempObj.addComplete && typeof tempObj.addComplete == 'function' ) -
trunk/wp-includes/js/wp-ajax-js.php
r4458 r4535 82 82 wpBeforeUnload = window.onbeforeunload; 83 83 window.onbeforeunload = function() { 84 return "<?php _e("Slow down, I'm still sending your data!"); ?>";84 return "<?php js_escape(__("Slow down, I'm still sending your data!")); ?>"; 85 85 } 86 86 },
Note: See TracChangeset
for help on using the changeset viewer.