Remove trailing spaces and convert spaces to tabs. Props Nazgul. fixes #986

git-svn-id: http://svn.automattic.com/wordpress/trunk@4495 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-11-19 07:56:05 +00:00
parent 38e868257a
commit 9f534ebae6
99 changed files with 1521 additions and 1521 deletions

View File

@ -38,13 +38,13 @@ else
$content = wp_specialchars($_REQUEST['content']); $content = wp_specialchars($_REQUEST['content']);
$popupurl = wp_specialchars($_REQUEST['popupurl']); $popupurl = wp_specialchars($_REQUEST['popupurl']);
if ( !empty($content) ) { if ( !empty($content) ) {
$post->post_content = wp_specialchars( stripslashes($_REQUEST['content']) ); $post->post_content = wp_specialchars( stripslashes($_REQUEST['content']) );
} else { } else {
$post->post_content = '<a href="'.$popupurl.'">'.$popuptitle.'</a>'."\n$text"; $post->post_content = '<a href="'.$popupurl.'">'.$popuptitle.'</a>'."\n$text";
} }
/* /big funky fixes */ /* /big funky fixes */
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">

View File

@ -8,8 +8,7 @@ $messages[3] = __('Custom field deleted.');
<?php endif; ?> <?php endif; ?>
<form name="post" action="post.php" method="post" id="post"> <form name="post" action="post.php" method="post" id="post">
<?php if ( (isset($mode) && 'bookmarklet' == $mode) || <?php if ( (isset($mode) && 'bookmarklet' == $mode) || isset($_GET['popupurl']) ): ?>
isset($_GET['popupurl']) ): ?>
<input type="hidden" name="mode" value="bookmarklet" /> <input type="hidden" name="mode" value="bookmarklet" />
<?php endif; ?> <?php endif; ?>

View File

@ -60,32 +60,33 @@ if(!function_exists('link_exists'))
// //
// This cries out for a C-implementation to be included in PHP core // This cries out for a C-implementation to be included in PHP core
// //
function valid_1byte($char) {
function valid_1byte($char) {
if(!is_int($char)) return false; if(!is_int($char)) return false;
return ($char & 0x80) == 0x00; return ($char & 0x80) == 0x00;
} }
function valid_2byte($char) { function valid_2byte($char) {
if(!is_int($char)) return false; if(!is_int($char)) return false;
return ($char & 0xE0) == 0xC0; return ($char & 0xE0) == 0xC0;
} }
function valid_3byte($char) { function valid_3byte($char) {
if(!is_int($char)) return false; if(!is_int($char)) return false;
return ($char & 0xF0) == 0xE0; return ($char & 0xF0) == 0xE0;
} }
function valid_4byte($char) { function valid_4byte($char) {
if(!is_int($char)) return false; if(!is_int($char)) return false;
return ($char & 0xF8) == 0xF0; return ($char & 0xF8) == 0xF0;
} }
function valid_nextbyte($char) { function valid_nextbyte($char) {
if(!is_int($char)) return false; if(!is_int($char)) return false;
return ($char & 0xC0) == 0x80; return ($char & 0xC0) == 0x80;
} }
function valid_utf8($string) { function valid_utf8($string) {
$len = strlen($string); $len = strlen($string);
$i = 0; $i = 0;
while( $i < $len ) { while( $i < $len ) {
@ -110,7 +111,7 @@ if(!function_exists('link_exists'))
} // goto next char } // goto next char
} }
return true; // done return true; // done
} }
function csc ($s) { function csc ($s) {
if (valid_utf8 ($s)) { if (valid_utf8 ($s)) {

View File

@ -157,7 +157,7 @@ $post_title = ('' == $post_title) ? "# $comment->comment_post_ID" : $post_title;
<div id="ajax-response"></div> <div id="ajax-response"></div>
<p class="submit"><input type="submit" name="submit" value="<?php _e('Bulk Moderate Comments &raquo;') ?>" /></p> <p class="submit"><input type="submit" name="submit" value="<?php _e('Bulk Moderate Comments &raquo;') ?>" /></p>
<script type="text/javascript"> <script type="text/javascript">
// <![CDATA[ // <![CDATA[
function markAllForDelete() { function markAllForDelete() {
@ -197,7 +197,7 @@ document.write('<ul><li><a href="javascript:markAllForApprove()"><?php _e('Mark
<input name="feelinglucky" type="checkbox" id="feelinglucky" value="true" /> <label for="feelinglucky"><?php _e('Delete every comment marked "defer." <strong>Warning: This can&#8217;t be undone.</strong>'); ?></label> <input name="feelinglucky" type="checkbox" id="feelinglucky" value="true" /> <label for="feelinglucky"><?php _e('Delete every comment marked "defer." <strong>Warning: This can&#8217;t be undone.</strong>'); ?></label>
</p> </p>
</noscript> </noscript>
</form> </form>
<?php <?php
} else { } else {
// nothing to approve // nothing to approve

View File

@ -76,13 +76,13 @@ default:
if ($plugin_files) : if ($plugin_files) :
?> ?>
<ul> <ul>
<?php foreach($plugin_files as $plugin_file) : ?> <?php foreach($plugin_files as $plugin_file) : ?>
<li><a href="plugin-editor.php?file=<?php echo "$plugin_file"; ?>"><?php echo $plugins[$plugin_file]['Name']; ?></a></li> <li><a href="plugin-editor.php?file=<?php echo "$plugin_file"; ?>"><?php echo $plugins[$plugin_file]['Name']; ?></a></li>
<?php endforeach; ?> <?php endforeach; ?>
</ul> </ul>
<?php endif; ?> <?php endif; ?>
</div> </div>
<?php if (!$error) { ?> <?php if (!$error) { ?>
<form name="template" id="template" action="plugin-editor.php" method="post"> <form name="template" id="template" action="plugin-editor.php" method="post">
<?php wp_nonce_field('edit-plugin_' . $file) ?> <?php wp_nonce_field('edit-plugin_' . $file) ?>
<div><textarea cols="70" rows="25" name="newcontent" id="newcontent" tabindex="1"><?php echo $content ?></textarea> <div><textarea cols="70" rows="25" name="newcontent" id="newcontent" tabindex="1"><?php echo $content ?></textarea>
@ -91,19 +91,19 @@ if ($plugin_files) :
</div> </div>
<?php if ( is_writeable($real_file) ) : ?> <?php if ( is_writeable($real_file) ) : ?>
<p class="submit"> <p class="submit">
<?php <?php
echo "<input type='submit' name='submit' value=' " . __('Update File &raquo;') . "' tabindex='2' />"; echo "<input type='submit' name='submit' value=' " . __('Update File &raquo;') . "' tabindex='2' />";
?> ?>
</p> </p>
<?php else : ?> <?php else : ?>
<p><em><?php _e('If this file were writable you could edit it.'); ?></em></p> <p><em><?php _e('If this file were writable you could edit it.'); ?></em></p>
<?php endif; ?> <?php endif; ?>
</form> </form>
<?php <?php
} else { } else {
echo '<div class="error"><p>' . __('Oops, no such file exists! Double check the name and try again, merci.') . '</p></div>'; echo '<div class="error"><p>' . __('Oops, no such file exists! Double check the name and try again, merci.') . '</p></div>';
} }
?> ?>
<div class="clear"> &nbsp; </div> <div class="clear"> &nbsp; </div>
</div> </div>
<?php <?php

View File

@ -110,11 +110,11 @@ endif;
if (file_exists(ABSPATH . $old_file)) if (file_exists(ABSPATH . $old_file))
$common_files[] = $old_file; $common_files[] = $old_file;
} ?> } ?>
<ul> <ul>
<?php foreach ($common_files as $common_file) : ?> <?php foreach ($common_files as $common_file) : ?>
<li><a href="templates.php?file=<?php echo $common_file?>"><?php echo get_file_description($common_file); ?></a></li> <li><a href="templates.php?file=<?php echo $common_file?>"><?php echo get_file_description($common_file); ?></a></li>
<?php endforeach; ?> <?php endforeach; ?>
</ul> </ul>
</div> </div>
<?php if (!$error) { ?> <?php if (!$error) { ?>
<form name="template" id="template" action="templates.php" method="post"> <form name="template" id="template" action="templates.php" method="post">
@ -122,7 +122,7 @@ endif;
<div><textarea cols="70" rows="25" name="newcontent" id='newcontent' tabindex="1"><?php echo $content ?></textarea> <div><textarea cols="70" rows="25" name="newcontent" id='newcontent' tabindex="1"><?php echo $content ?></textarea>
<input type="hidden" name="action" value="update" /> <input type="hidden" name="action" value="update" />
<input type="hidden" name="file" value="<?php echo $file ?>" /> <input type="hidden" name="file" value="<?php echo $file ?>" />
</div> </div>
<?php if ( is_writeable($real_file) ) : ?> <?php if ( is_writeable($real_file) ) : ?>
<p class="submit"> <p class="submit">
<?php <?php

View File

@ -954,8 +954,8 @@ input.delete:hover {
} }
/* A handy div class for hiding controls. /* A handy div class for hiding controls.
Some browsers will disable them when you Some browsers will disable them when you
set display:none; */ set display:none; */
.zerosize { .zerosize {
height: 0px; height: 0px;
width: 0px; width: 0px;
@ -995,9 +995,9 @@ input.delete:hover {
} }
/**************************************************************** /****************************************************************
avoid padding, margins or borders on dbx-box, avoid padding, margins or borders on dbx-box,
to reduce visual discrepancies between it and the clone. to reduce visual discrepancies between it and the clone.
overall, dbx-box is best left as visually unstyled as possible overall, dbx-box is best left as visually unstyled as possible
*****************************************************************/ *****************************************************************/
.dbx-box { .dbx-box {
margin:0; margin:0;

View File

@ -15,7 +15,7 @@ $more = 1;
xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dc="http://purl.org/dc/elements/1.1/"
xml:lang="<?php echo get_option('rss_language'); ?>" xml:lang="<?php echo get_option('rss_language'); ?>"
<?php do_action('atom_ns'); ?> <?php do_action('atom_ns'); ?>
> >
<title><?php bloginfo_rss('name') ?></title> <title><?php bloginfo_rss('name') ?></title>
<link rel="alternate" type="text/html" href="<?php bloginfo_rss('home') ?>" /> <link rel="alternate" type="text/html" href="<?php bloginfo_rss('home') ?>" />
<tagline><?php bloginfo_rss("description") ?></tagline> <tagline><?php bloginfo_rss("description") ?></tagline>