Changeset 762
- Timestamp:
- 01/12/2004 12:12:45 PM (22 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/import-blogger.php
r628 r762 16 16 } 17 17 } 18 18 require_once('../wp-config.php'); 19 require('upgrade_functions.php'); 19 20 switch ($action) { 20 21 21 22 case "step1": 22 23 require_once('../wp-config.php');24 require_once(ABSPATH.WPINC.'/template-functions.php');25 require_once(ABSPATH.WPINC.'/functions.php');26 require_once(ABSPATH.WPINC.'/vars.php');27 28 23 ?> 29 24 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> … … 159 154 $result = $wpdb->query("DELETE FROM $tableposts WHERE post_date=\"0000-00-00 00:00:00\""); 160 155 161 156 upgrade_all(); 162 157 ?> 163 158 </ul> -
trunk/wp-admin/import-greymatter.php
r661 r762 7 7 require_once('../wp-config.php'); 8 8 require_once(ABSPATH.WPINC.'/functions.php'); 9 require('upgrade-functions.php'); 9 10 10 11 $wpvarstoreset = array('action', 'gmpath', 'archivespath'); … … 253 254 echo "... <b>Done</b></li>"; 254 255 } 255 } ?> 256 } 257 upgrade_all(); 258 ?> 256 259 </ul><b>Done</b></li></ul> 257 260 <p> </p> -
trunk/wp-admin/import-textpattern.php
r601 r762 3 3 // For security reasons, fill in the connection details to your Textpattern database below: 4 4 5 $tp_database_name = ' wordpres_test';6 $tp_database_username = ' wordpres_test';7 $tp_database_password = ' test';5 $tp_database_name = 'textpattern'; 6 $tp_database_username = 'username'; 7 $tp_database_password = 'password'; 8 8 $tp_database_host = 'localhost'; 9 9 10 10 if (!file_exists('../wp-config.php')) die("There doesn't seem to be a wp-config.php file. Double check that you updated wp-config.sample.php with the proper database connection information and renamed it to wp-config.php."); 11 11 require('../wp-config.php'); 12 require(' install-helper.php');12 require('upgrade-functions.php'); 13 13 14 14 $step = $HTTP_GET_VARS['step']; … … 30 30 background-image: url(http://wordpress.org/images/wordpress.gif); 31 31 background-repeat: no-repeat; 32 height: 72px;32 height: 60px; 33 33 border-bottom: 4px solid #333; 34 34 } … … 37 37 text-decoration: none; 38 38 text-indent: -100em; 39 height: 72px;39 height: 60px; 40 40 } 41 41 p { … … 61 61 } else { 62 62 ?> 63 <p><em>It doesn't look like your database information is correct. Please re-edit this file and double-check all the settings.</em></p>63 <p><em>It doesn't look like your database information is incorrect. Please re-edit this file and double-check all the settings.</em></p> 64 64 <?php 65 65 } … … 103 103 104 104 $wpdb->query("INSERT INTO $tableposts 105 (post_author, post_date, post_content, post_title, post_category, post_name )105 (post_author, post_date, post_content, post_title, post_category, post_name, post_status) 106 106 VALUES 107 ('$author', '$posted', '$content', '$title', '$category', '$post_name' )");107 ('$author', '$posted', '$content', '$title', '$category', '$post_name', 'publish')"); 108 108 109 109 // Get wordpress post id … … 126 126 } 127 127 128 ?> 129 <p><strong>Done.</strong></p> 130 <p>Now let's populate the new field.</p> 131 <p>Working 132 133 <strong>Done.</strong></p> 134 <p>Now on to <a href="upgrade-072-to-073.php?step=2">step 2</a>.</p> 128 upgrade_all(); 129 ?> 130 <p><strong>All done.</strong> Wasn’t that fun? <a href="../">Have fun</a>.</p> 135 131 <?php 136 break; 137 case 2: 138 ?> 139 <h1>Step 2</h1> 140 <p>Now we need to adjust some option data (don't worry this won't change any of your settings.) </p> 141 <p>Working 142 <?php 143 // fix timezone diff range 144 $wpdb->query("UPDATE $tableoptionvalues SET optionvalue_max = 23 , optionvalue_min = -23 WHERE option_id = 51"); 145 echo ' .'; 146 flush(); 147 // fix upload users description 148 $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"); 149 echo ' .'; 150 flush(); 151 // and file types 152 $wpdb->query("UPDATE $tableoptions SET option_description = 'accepted file types, separated by spaces. example: \'jpg gif png\'' WHERE option_id = 34"); 153 echo ' .'; 154 flush(); 155 // add link to date format help page 156 $wpdb->query("UPDATE $tableoptions SET option_description = 'see <a href=\"help/en/dateformats.help.html\">help</a> for format characters' WHERE option_id = 52"); 157 $wpdb->query("UPDATE $tableoptions SET option_description = 'see <a href=\"help/en/dateformats.help.html\">help</a> for format characters' WHERE option_id = 53"); 158 echo ' .'; 159 flush(); 160 ?> 161 <strong>Done.</strong></p> 162 <p>See, that didn’t hurt a bit. All done!</p> 163 <?php 164 break; 132 break; 165 133 } 166 134 ?> 135 167 136 </body> 168 137 </html> -
trunk/wp-admin/upgrade-functions.php
r759 r762 1 1 <?php 2 2 // Functions to be called in install and upgrade scripts 3 4 function upgrade_all() { 5 upgrade_071(); 6 upgrade_072(); 7 upgrade_100(); 8 upgrade_101(); 9 } 3 10 4 11 // General -
trunk/wp-admin/upgrade.php
r711 r762 49 49 50 50 case 1: 51 upgrade_071(); 52 upgrade_072(); 53 upgrade_100(); 54 upgrade_101(); 51 upgrade_all(); 55 52 ?> 56 53 <h2>Step 1</h2>
Note: See TracChangeset
for help on using the changeset viewer.