From e0d4b0d2cc1f3386d307c5dcebc7ad7026bcab65 Mon Sep 17 00:00:00 2001 From: mikelittle Date: Mon, 3 Nov 2003 23:24:30 +0000 Subject: [PATCH] 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 --- wp-admin/help/en/dateformats.help.html | 66 ++++++++++++++++++++++++++ wp-admin/upgrade-072-to-073.php | 37 +++++++++++++-- 2 files changed, 98 insertions(+), 5 deletions(-) create mode 100644 wp-admin/help/en/dateformats.help.html diff --git a/wp-admin/help/en/dateformats.help.html b/wp-admin/help/en/dateformats.help.html new file mode 100644 index 000000000..7aa79b8a7 --- /dev/null +++ b/wp-admin/help/en/dateformats.help.html @@ -0,0 +1,66 @@ + + + + WordPress — Docs + + + + + + + + + +
+ +

WordPress

+ +

Reference

+
+
About Date & Time formats:
+
You can format the date & time in many ways, using the PHP syntax.
+ As quoted from the PHP manual, here are the letters you can use: +
+ The following characters are recognized in the format string:
+ a - "am" or "pm"
+ A - "AM" or "PM"
+ B - Swatch Internet time
+ d - day of the month, 2 digits with leading zeros; i.e. "01" to "31"
+ D - day of the week, textual, 3 letters; i.e. "Fri"
+ F - month, textual, long; i.e. "January"
+ g - hour, 12-hour format without leading zeros; i.e. "1" to "12"
+ G - hour, 24-hour format without leading zeros; i.e. "0" to "23"
+ h - hour, 12-hour format; i.e. "01" to "12"
+ H - hour, 24-hour format; i.e. "00" to "23"
+ i - minutes; i.e. "00" to "59"
+ I (capital i) - "1" if Daylight Savings Time, "0" otherwise.
+ j - day of the month without leading zeros; i.e. "1" to "31"
+ l (lowercase 'L') - day of the week, textual, long; i.e. "Friday"
+ L - boolean for whether it is a leap year; i.e. "0" or "1"
+ m - month; i.e. "01" to "12"
+ M - month, textual, 3 letters; i.e. "Jan"
+ n - month without leading zeros; i.e. "1" to "12"
+ r - RFC 822 formatted date; i.e. "Thu, 21 Dec 2000 16:01:07 +0200" (added in PHP 4.0.4)
+ s - seconds; i.e. "00" to "59"
+ S - English ordinal suffix, textual, 2 characters; i.e. "th", "nd"
+ t - number of days in the given month; i.e. "28" to "31"
+ T - Timezone setting of this machine; i.e. "MDT"
+ U - seconds since the epoch
+ w - day of the week, numeric, i.e. "0" (Sunday) to "6" (Saturday)
+ Y - year, 4 digits; i.e. "1999"
+ y - year, 2 digits; i.e. "99"
+ z - day of the year; i.e. "0" to "365"
+ Z - 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.
+
+ Unrecognized characters in the format string will be printed as-is. +
+

For more information and examples, check the PHP manual on this page.

+
+ +
+
+
+ + \ No newline at end of file diff --git a/wp-admin/upgrade-072-to-073.php b/wp-admin/upgrade-072-to-073.php index 1e5808ced..f441e8c77 100644 --- a/wp-admin/upgrade-072-to-073.php +++ b/wp-admin/upgrade-072-to-073.php @@ -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'); ?> @@ -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');"); ?> - Done.

-

See, that didn’t hurt a bit. All done!

+ Done.

+

Now on to step 2.

+ +

Step 2

+

Now we need to adjust some option data (don't worry this won't change any of your settings.)

+

Working +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 help for format characters' WHERE option_id = 52"); + $wpdb->query("UPDATE $tableoptions SET option_description = 'see help for format characters' WHERE option_id = 53"); + echo ' .'; + flush(); +?> + Done.

+

See, that didn’t hurt a bit. All done!

- \ No newline at end of file +