Minor optino description changes.

Fix for time difference range.
Added new help file for date/time format characters.


git-svn-id: http://svn.automattic.com/wordpress/trunk@516 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
mikelittle 2003-11-03 23:24:30 +00:00
parent a6a5986742
commit e0d4b0d2cc
2 changed files with 98 additions and 5 deletions

View File

@ -0,0 +1,66 @@
<!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" xml:lang="en">
<head>
<title>WordPress &#8212; Docs</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!-- fix the FOUC -->
<script type="text/javascript"> </script>
<style type="text/css">
@import url("http://wordpress.org/wp.css");
</style>
</head>
<body>
<div id="main">
<h1 id="logo"><a href="/" title="WordPress"><span>WordPress</span></a></h1>
<div id="content"><h2>Reference</h2>
<dl>
<dt id="dateformat"><a href="#dateformat">About Date &amp; Time formats:</a></dt>
<dd>You can format the date &amp; time in many ways, using the PHP syntax.<br />
As quoted from the PHP manual, here are the letters you can use:
<blockquote>
The following characters are recognized in the format string:<br />
<strong>a</strong> - "am" or "pm"<br />
<strong>A</strong> - "AM" or "PM"<br />
<strong>B</strong> - Swatch Internet time<br />
<strong>d</strong> - day of the month, 2 digits with leading zeros; i.e. "01" to "31"<br />
<strong>D</strong> - day of the week, textual, 3 letters; i.e. "Fri"<br />
<strong>F</strong> - month, textual, long; i.e. "January"<br />
<strong>g</strong> - hour, 12-hour format without leading zeros; i.e. "1" to "12"<br />
<strong>G</strong> - hour, 24-hour format without leading zeros; i.e. "0" to "23"<br />
<strong>h</strong> - hour, 12-hour format; i.e. "01" to "12"<br />
<strong>H</strong> - hour, 24-hour format; i.e. "00" to "23"<br />
<strong>i</strong> - minutes; i.e. "00" to "59"<br />
<strong>I</strong> (capital i) - "1" if Daylight Savings Time, "0" otherwise.<br />
<strong>j</strong> - day of the month without leading zeros; i.e. "1" to "31"<br />
<strong>l</strong> (lowercase 'L') - day of the week, textual, long; i.e. "Friday"<br />
<strong>L</strong> - boolean for whether it is a leap year; i.e. "0" or "1"<br />
<strong>m</strong> - month; i.e. "01" to "12"<br />
<strong>M</strong> - month, textual, 3 letters; i.e. "Jan"<br />
<strong>n</strong> - month without leading zeros; i.e. "1" to "12"<br />
<strong>r</strong> - RFC 822 formatted date; i.e. "Thu, 21 Dec 2000 16:01:07 +0200" (added in PHP 4.0.4)<br />
<strong>s</strong> - seconds; i.e. "00" to "59"<br />
<strong>S</strong> - English ordinal suffix, textual, 2 characters; i.e. "th", "nd"<br />
<strong>t</strong> - number of days in the given month; i.e. "28" to "31"<br />
<strong>T</strong> - Timezone setting of this machine; i.e. "MDT"<br />
<strong>U</strong> - seconds since the epoch<br />
<strong>w</strong> - day of the week, numeric, i.e. "0" (Sunday) to "6" (Saturday)<br />
<strong>Y</strong> - year, 4 digits; i.e. "1999"<br />
<strong>y</strong> - year, 2 digits; i.e. "99"<br />
<strong>z</strong> - day of the year; i.e. "0" to "365"<br />
<strong>Z</strong> - timezone offset in seconds (i.e. "-43200" to "43200"). The offset for timezones west of UTC is always negative, and for those east of UTC is always positive.<br />
<br />
Unrecognized characters in the format string will be printed as-is.
</blockquote>
<p>For more information and examples, check the PHP manual on <a href="http://www.php.net/manual/en/function.date.php">this page</a>.</p>
</dd>
</dl>
</div>
</div>
</body>
</html>

View File

@ -4,8 +4,7 @@ require('wp-install-helper.php');
$step = $HTTP_GET_VARS['step'];
if (!$step) $step = 0;
if (!step) $step = 0;
update_option('blogdescription', 'hahahah');
//update_option('blogdescription', 'hahahah');
?>
<!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">
@ -79,11 +78,39 @@ foreach($posts as $post) {
$wpdb->query("INSERT INTO `$tableoptions` (`option_id`, `blog_id`, `option_name`, `option_can_override`, `option_type`, `option_value`, `option_width`, `option_height`, `option_description`, `option_admin_level`) VALUES ('', '0', 'permalink_structure', 'Y', '3', '', '20', '8', 'How the permalinks for your site are constructed.', '8');");
?>
<strong>Done.</strong> </p>
<p>See, that didn&#8217;t hurt a bit. All done!</p>
<strong>Done.</strong></p>
<p>Now on to <a href="upgrade-072-to-073.php?step=2">step 2</a>.</p>
<?php
break;
case 2:
?>
<h1>Step 2</h1>
<p>Now we need to adjust some option data (don't worry this won't change any of your settings.) </p>
<p>Working
<?php
// fix timezone diff range
$wpdb->query("UPDATE $tableoptionvalues SET optionvalue_max = 23 , optionvalue_min = -23 WHERE option_id = 51");
echo ' .';
flush();
// fix upload users description
$wpdb->query("UPDATE $tableoptions SET option_description = '...or you may authorize only some users. enter their logins here, separated by spaces. if you leave this variable blank, all users who have the minimum level are authorized to upload. example: \'barbara anne george\'' WHERE option_id = 37");
echo ' .';
flush();
// and file types
$wpdb->query("UPDATE $tableoptions SET option_description = 'accepted file types, separated by spaces. example: \'jpg gif png\'' WHERE option_id = 34");
echo ' .';
flush();
// add link to date format help page
$wpdb->query("UPDATE $tableoptions SET option_description = 'see <a href=\"help/en/dateformats.help.html\">help</a> for format characters' WHERE option_id = 52");
$wpdb->query("UPDATE $tableoptions SET option_description = 'see <a href=\"help/en/dateformats.help.html\">help</a> for format characters' WHERE option_id = 53");
echo ' .';
flush();
?>
<strong>Done.</strong></p>
<p>See, that didn&#8217;t hurt a bit. All done!</p>
<?php
break;
}
?>
</body>
</html>
</html>