mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-18 16:45:31 +01:00
Validation fixes from leftjustified. fixes #2907
git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@3982 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
89424cdb4b
commit
c97495ea1f
@ -156,7 +156,7 @@ endforeach;
|
|||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
<!--
|
// <![CDATA[
|
||||||
edCanvas = document.getElementById('content');
|
edCanvas = document.getElementById('content');
|
||||||
<?php if ( user_can_richedit() ) : ?>
|
<?php if ( user_can_richedit() ) : ?>
|
||||||
// This code is meant to allow tabbing from Title to Post (TinyMCE).
|
// This code is meant to allow tabbing from Title to Post (TinyMCE).
|
||||||
@ -191,7 +191,7 @@ else
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
//-->
|
// ]]>
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php echo $form_pingback ?>
|
<?php echo $form_pingback ?>
|
||||||
|
@ -37,12 +37,12 @@ if (isset($mode) && 'bookmarklet' == $mode) {
|
|||||||
<input type="hidden" name="post_status" value="static" />
|
<input type="hidden" name="post_status" value="static" />
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
<!--
|
// <![CDATA[
|
||||||
function focusit() { // focus on first input field
|
function focusit() { // focus on first input field
|
||||||
document.post.title.focus();
|
document.post.title.focus();
|
||||||
}
|
}
|
||||||
addLoadEvent(focusit);
|
addLoadEvent(focusit);
|
||||||
//-->
|
// ]]>
|
||||||
</script>
|
</script>
|
||||||
<div id="poststuff">
|
<div id="poststuff">
|
||||||
|
|
||||||
@ -74,7 +74,7 @@ addLoadEvent(focusit);
|
|||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<?php if ( 0 != count( get_page_templates() ) ) { ?>
|
<?php if ( 0 != count( get_page_templates() ) ) { ?>
|
||||||
<fieldset id="pageparent" class="dbx-box">
|
<fieldset id="pagetemplate" class="dbx-box">
|
||||||
<h3 class="dbx-handle"><?php _e('Page Template:') ?></h3>
|
<h3 class="dbx-handle"><?php _e('Page Template:') ?></h3>
|
||||||
<div class="dbx-content"><p><select name="page_template">
|
<div class="dbx-content"><p><select name="page_template">
|
||||||
<option value='default'><?php _e('Default Template'); ?></option>
|
<option value='default'><?php _e('Default Template'); ?></option>
|
||||||
|
@ -238,7 +238,7 @@ srcb[{$ID}] = '{$image['guid']}';
|
|||||||
$xpadding = (128 - $image['uwidth']) / 2;
|
$xpadding = (128 - $image['uwidth']) / 2;
|
||||||
$ypadding = (96 - $image['uheight']) / 2;
|
$ypadding = (96 - $image['uheight']) / 2;
|
||||||
$style .= "#target{$ID} img { padding: {$ypadding}px {$xpadding}px; }\n";
|
$style .= "#target{$ID} img { padding: {$ypadding}px {$xpadding}px; }\n";
|
||||||
$title = htmlentities($image['post_title'], ENT_QUOTES);
|
$title = wp_specialchars($image['post_title'], ENT_QUOTES);
|
||||||
$script .= "aa[{$ID}] = '<a id=\"p{$ID}\" rel=\"attachment\" class=\"imagelink\" href=\"$href\" onclick=\"doPopup({$ID});return false;\" title=\"{$title}\">';
|
$script .= "aa[{$ID}] = '<a id=\"p{$ID}\" rel=\"attachment\" class=\"imagelink\" href=\"$href\" onclick=\"doPopup({$ID});return false;\" title=\"{$title}\">';
|
||||||
ab[{$ID}] = '<a class=\"imagelink\" href=\"{$image['guid']}\" onclick=\"doPopup({$ID});return false;\" title=\"{$title}\">';
|
ab[{$ID}] = '<a class=\"imagelink\" href=\"{$image['guid']}\" onclick=\"doPopup({$ID});return false;\" title=\"{$title}\">';
|
||||||
imga[{$ID}] = '<img id=\"image{$ID}\" src=\"$src\" alt=\"{$title}\" $height_width />';
|
imga[{$ID}] = '<img id=\"image{$ID}\" src=\"$src\" alt=\"{$title}\" $height_width />';
|
||||||
@ -258,7 +258,7 @@ imgb[{$ID}] = '<img id=\"image{$ID}\" src=\"{$image['guid']}\" alt=\"{$title}\"
|
|||||||
</div>
|
</div>
|
||||||
";
|
";
|
||||||
} else {
|
} else {
|
||||||
$title = htmlentities($attachment['post_title'], ENT_QUOTES);
|
$title = wp_specialchars($attachment['post_title'], ENT_QUOTES);
|
||||||
$filename = basename($attachment['guid']);
|
$filename = basename($attachment['guid']);
|
||||||
$icon = get_attachment_icon($ID);
|
$icon = get_attachment_icon($ID);
|
||||||
$toggle_icon = "<a id=\"I{$ID}\" onclick=\"toggleOtherIcon({$ID});return false;\" href=\"javascript:void()\">$__using_title</a>";
|
$toggle_icon = "<a id=\"I{$ID}\" onclick=\"toggleOtherIcon({$ID});return false;\" href=\"javascript:void()\">$__using_title</a>";
|
||||||
@ -299,8 +299,10 @@ die(__('This script was not meant to be called directly.'));
|
|||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_settings('blog_charset'); ?>" />
|
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_settings('blog_charset'); ?>" />
|
||||||
|
<title></title>
|
||||||
<meta http-equiv="imagetoolbar" content="no" />
|
<meta http-equiv="imagetoolbar" content="no" />
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
// <![CDATA[
|
||||||
/* Define any variables we'll need, such as alternate URLs. */
|
/* Define any variables we'll need, such as alternate URLs. */
|
||||||
<?php echo $script; ?>
|
<?php echo $script; ?>
|
||||||
function htmldecode(st) {
|
function htmldecode(st) {
|
||||||
@ -438,6 +440,7 @@ function sendToEditor(n) {
|
|||||||
else
|
else
|
||||||
win.edInsertContent(win.edCanvas, h);
|
win.edInsertContent(win.edCanvas, h);
|
||||||
}
|
}
|
||||||
|
// ]]>
|
||||||
</script>
|
</script>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
<?php if ( $action == 'links' ) : ?>
|
<?php if ( $action == 'links' ) : ?>
|
||||||
@ -678,7 +681,7 @@ th {
|
|||||||
</div>
|
</div>
|
||||||
<?php elseif ( $action == 'upload' ) : ?>
|
<?php elseif ( $action == 'upload' ) : ?>
|
||||||
<div class="tip"></div>
|
<div class="tip"></div>
|
||||||
<form enctype="multipart/form-data" id="uploadForm" method="POST" action="<?php echo basename(__FILE__); ?>">
|
<form enctype="multipart/form-data" id="uploadForm" method="post" action="<?php echo basename(__FILE__); ?>">
|
||||||
<table style="width:99%;">
|
<table style="width:99%;">
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row" align="right"><label for="upload"><?php _e('File:'); ?></label></th>
|
<th scope="row" align="right"><label for="upload"><?php _e('File:'); ?></label></th>
|
||||||
@ -709,7 +712,6 @@ th {
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
|
||||||
</form>
|
</form>
|
||||||
<?php elseif ( $action == 'links' ) : ?>
|
<?php elseif ( $action == 'links' ) : ?>
|
||||||
<div id="links">
|
<div id="links">
|
||||||
|
@ -152,10 +152,10 @@ echo '<a href="post.php?action=editcomment&comment='.$comment->comment_ID.'"
|
|||||||
<a href="<?php echo get_permalink($comment->comment_post_ID); ?>"><?php _e('View Post') ?></a> |
|
<a href="<?php echo get_permalink($comment->comment_post_ID); ?>"><?php _e('View Post') ?></a> |
|
||||||
<?php
|
<?php
|
||||||
echo " <a href=\"" . wp_nonce_url("post.php?action=deletecomment&p=".$comment->comment_post_ID."&comment=".$comment->comment_ID, 'delete-comment_' . $comment->comment_ID) . "\" onclick=\"return deleteSomething( 'comment', $comment->comment_ID, '" . __("You are about to delete this comment.\\n"Cancel" to stop, "OK" to delete.") . "' );\">" . __('Delete just this comment') . "</a> | "; ?> <?php _e('Bulk action:') ?>
|
echo " <a href=\"" . wp_nonce_url("post.php?action=deletecomment&p=".$comment->comment_post_ID."&comment=".$comment->comment_ID, 'delete-comment_' . $comment->comment_ID) . "\" onclick=\"return deleteSomething( 'comment', $comment->comment_ID, '" . __("You are about to delete this comment.\\n"Cancel" to stop, "OK" to delete.") . "' );\">" . __('Delete just this comment') . "</a> | "; ?> <?php _e('Bulk action:') ?>
|
||||||
<input type="radio" name="comment[<?php echo $comment->comment_ID; ?>]" id="comment[<?php echo $comment->comment_ID; ?>]-approve" value="approve" /> <label for="comment[<?php echo $comment->comment_ID; ?>]-approve"><?php _e('Approve') ?></label>
|
<input type="radio" name="comment[<?php echo $comment->comment_ID; ?>]" id="comment-<?php echo $comment->comment_ID; ?>-approve" value="approve" /> <label for="comment[<?php echo $comment->comment_ID; ?>]-approve"><?php _e('Approve') ?></label>
|
||||||
<input type="radio" name="comment[<?php echo $comment->comment_ID; ?>]" id="comment[<?php echo $comment->comment_ID; ?>]-spam" value="spam" /> <label for="comment[<?php echo $comment->comment_ID; ?>]-spam"><?php _e('Spam') ?></label>
|
<input type="radio" name="comment[<?php echo $comment->comment_ID; ?>]" id="comment-<?php echo $comment->comment_ID; ?>-spam" value="spam" /> <label for="comment[<?php echo $comment->comment_ID; ?>]-spam"><?php _e('Spam') ?></label>
|
||||||
<input type="radio" name="comment[<?php echo $comment->comment_ID; ?>]" id="comment[<?php echo $comment->comment_ID; ?>]-delete" value="delete" /> <label for="comment[<?php echo $comment->comment_ID; ?>]-delete"><?php _e('Delete') ?></label>
|
<input type="radio" name="comment[<?php echo $comment->comment_ID; ?>]" id="comment-<?php echo $comment->comment_ID; ?>-delete" value="delete" /> <label for="comment[<?php echo $comment->comment_ID; ?>]-delete"><?php _e('Delete') ?></label>
|
||||||
<input type="radio" name="comment[<?php echo $comment->comment_ID; ?>]" id="comment[<?php echo $comment->comment_ID; ?>]-nothing" value="later" checked="checked" /> <label for="comment[<?php echo $comment->comment_ID; ?>]-nothing"><?php _e('Defer until later') ?></label>
|
<input type="radio" name="comment[<?php echo $comment->comment_ID; ?>]" id="comment-<?php echo $comment->comment_ID; ?>-nothing" value="later" checked="checked" /> <label for="comment[<?php echo $comment->comment_ID; ?>]-nothing"><?php _e('Defer until later') ?></label>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
Reference in New Issue
Block a user