[wp-cvs] wordpress/wp-admin upgrade-functions.php,1.59,1.60
Ryan Boren
rboren at users.sourceforge.net
Sun Jun 13 12:02:46 CDT 2004
- Previous message: [wp-cvs] wordpress/wp-admin edit-comments.php, 1.25,
1.26 moderation.php, 1.11, 1.12 options-discussion.php, 1.16,
1.17 options-misc.php, 1.10, 1.11 options-permalink.php, 1.34,
1.35 options-reading.php, 1.10, 1.11 options-writing.php, 1.19,
1.20 options.php, 1.24, 1.25 post.php, 1.66, 1.67 profile.php,
1.23, 1.24
- Next message: [wp-cvs]
wordpress/wp-admin profile.php, 1.24, 1.25 users.php, 1.28, 1.29
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/cafelog/wordpress/wp-admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27585
Modified Files:
upgrade-functions.php
Log Message:
Preserve a 1.2 era version of get_alloptions as get_alloptions_110() so that upgrade_110() does not produce db errors due to version 1.3 specific changes to get_alloptions. http://mosquito.wordpress.org/bug_view_page.php?bug_id=0000037
Index: upgrade-functions.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/upgrade-functions.php,v
retrieving revision 1.59
retrieving revision 1.60
diff -C2 -d -r1.59 -r1.60
*** upgrade-functions.php 11 Jun 2004 18:23:12 -0000 1.59
--- upgrade-functions.php 13 Jun 2004 17:02:44 -0000 1.60
***************
*** 74,77 ****
--- 74,94 ----
}
+
+ // get_alloptions as it was for 1.2.
+ function get_alloptions_110() {
+ global $wpdb;
+ if ($options = $wpdb->get_results("SELECT option_name, option_value FROM $wpdb->options")) {
+ foreach ($options as $option) {
+ // "When trying to design a foolproof system,
+ // never underestimate the ingenuity of the fools :)" -- Dougal
+ if ('siteurl' == $option->option_name) $option->option_value = preg_replace('|/+$|', '', $option->option_value);
+ if ('home' == $option->option_name) $option->option_value = preg_replace('|/+$|', '', $option->option_value);
+ if ('category_base' == $option->option_name) $option->option_value = preg_replace('|/+$|', '', $option->option_value);
+ $all_options->{$option->option_name} = stripslashes($option->option_value);
+ }
+ }
+ return $all_options;
+ }
+
// .71 stuff
***************
*** 732,736 ****
// Get the GMT offset, we'll use that later on
! $all_options = get_alloptions();
$time_difference = $all_options->time_difference;
--- 749,754 ----
// Get the GMT offset, we'll use that later on
! $all_options = get_alloptions_110();
!
$time_difference = $all_options->time_difference;
- Previous message: [wp-cvs] wordpress/wp-admin edit-comments.php, 1.25,
1.26 moderation.php, 1.11, 1.12 options-discussion.php, 1.16,
1.17 options-misc.php, 1.10, 1.11 options-permalink.php, 1.34,
1.35 options-reading.php, 1.10, 1.11 options-writing.php, 1.19,
1.20 options.php, 1.24, 1.25 post.php, 1.66, 1.67 profile.php,
1.23, 1.24
- Next message: [wp-cvs]
wordpress/wp-admin profile.php, 1.24, 1.25 users.php, 1.28, 1.29
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the cvs
mailing list