E_ALL fixes and cleanups.

git-svn-id: https://develop.svn.wordpress.org/trunk@1239 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2004-05-07 23:56:33 +00:00
parent 2d8c664856
commit 3fedfb5746
16 changed files with 73 additions and 93 deletions

View File

@@ -18,14 +18,6 @@ if (get_settings('use_pingback')) {
if (get_settings('use_trackback')) {
$form_trackback = '<p><label for="trackback">' . sprintf(__('<a href="%s" title="Help on trackbacks"><strong>TrackBack</strong> an <acronym title="Uniform Resource Locator">URL</acronym></a>:</label> (Separate multiple <abbr title="Universal Resource Identifier">URI</abbr>s with spaces.)<br />'), 'http://wordpress.org/docs/reference/post/#trackback') .
'<input type="text" name="trackback_url" style="width: 360px" id="trackback" tabindex="7" /></p>';
if ('' != $pinged) {
$form_trackback .= '<p>' . __('Already pinged:') . '</p><ul>';
$already_pinged = explode("\n", trim($pinged));
foreach ($already_pinged as $pinged_url) {
$form_trackback .= "\n\t<li>$pinged_url</li>";
}
$form_trackback .= '</ul>';
}
} else {
$form_trackback = '';
}
@@ -38,7 +30,7 @@ $saveasdraft = '';
<form name="post" action="post.php" method="post" id="post">
<?php
if ('bookmarklet' == $mode) {
if (isset($mode) && 'bookmarklet' == $mode) {
echo '<input type="hidden" name="mode" value="bookmarklet" />';
}
?>
@@ -98,7 +90,6 @@ edCanvas = document.getElementById('content');
</script>
<?php echo $form_pingback ?>
<?php echo $form_prevstatus ?>
<?php echo $form_trackback; ?>
<p><input name="saveasdraft" type="submit" id="saveasdraft" tabindex="9" value="<?php _e('Save as Draft') ?>" />
<input name="saveasprivate" type="submit" id="saveasprivate" tabindex="10" value="<?php _e('Save as Private') ?>" />