Changeset 614
- Timestamp:
- 12/15/2003 09:55:47 AM (22 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
wp-admin/upgrade-072-to-080.php (modified) (2 diffs)
-
wp-includes/functions.php (modified) (1 diff)
-
wp-settings.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/upgrade-072-to-080.php
r601 r614 5 5 $step = $HTTP_GET_VARS['step']; 6 6 if (!$step) $step = 0; 7 //update_option('blogdescription', 'hahahah');8 7 ?> 9 8 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> … … 124 123 <?php 125 124 $wpdb->hide_errors(); // Turn this off for dev and we should probably just fix the queries anyway 126 // fix timezone diff range 127 $wpdb->query("UPDATE $tableoptionvalues SET optionvalue_max = 23 , optionvalue_min = -23 WHERE option_id = 51"); 128 echo ' .'; 129 flush(); 130 // fix upload users description 131 $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"); 132 echo ' .'; 133 flush(); 134 // and file types 135 $wpdb->query("UPDATE $tableoptions SET option_description = 'accepted file types, separated by spaces. example: \'jpg gif png\'' WHERE option_id = 34"); 136 echo ' .'; 137 flush(); 138 // add link to php date format. this could be to a wordpress.org page in the future 139 $wpdb->query("UPDATE $tableoptions SET option_description = 'see <a href=\"http://php.net/date\">help</a> for format characters' WHERE option_id = 52"); 140 $wpdb->query("UPDATE $tableoptions SET option_description = 'see <a href=\"http://php.net/date\">help</a> for format characters' WHERE option_id = 53"); 141 echo ' .'; 142 flush(); 125 // fix timezone diff range 126 $wpdb->query("UPDATE $tableoptionvalues SET optionvalue_max = 23 , optionvalue_min = -23 WHERE option_id = 51"); 127 echo ' .'; 128 flush(); 129 // fix upload users description 130 $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"); 131 echo ' .'; 132 flush(); 133 // and file types 134 $wpdb->query("UPDATE $tableoptions SET option_description = 'accepted file types, separated by spaces. example: \'jpg gif png\'' WHERE option_id = 34"); 135 echo ' .'; 136 flush(); 137 // add link to php date format. this could be to a wordpress.org page in the future 138 $wpdb->query("UPDATE $tableoptions SET option_description = 'see <a href=\"http://php.net/date\">help</a> for format characters' WHERE option_id = 52"); 139 $wpdb->query("UPDATE $tableoptions SET option_description = 'see <a href=\"http://php.net/date\">help</a> for format characters' WHERE option_id = 53"); 140 echo ' .'; 141 flush(); 142 if (!$wpdb->get_var("SELECT option_id FROM $tableoptinos WHERE option_name = 'hack_file'")) { 143 $wpdb->query("INSERT INTO `$tableoptions` 144 ( `option_id` , `blog_id` , `option_name` , `option_can_override` , `option_type` , `option_value` , `option_width` , `option_height` , `option_description` , `option_admin_level` ) 145 VALUES 146 ('', '0', 'hack_file', 'Y', '2', '0', '20', '8', 'Set this to true if you plan to use a hacks file. This is a place for you to store code hacks that won’t be overwritten when you upgrade. The file must be in your wordpress root and called <code>my-hacks.php</code>', '8')"); 147 $optionid = $wpdb->get_var("SELECT option_id FROM $tableoptions WHERE option_name = 'hack_file'"); 148 $wpdb->query("INSERT INTO $tableoptiongroup_options 149 (group_id, option_id, seq) 150 VALUES 151 (2, $optionid, 5)"); 152 } 143 153 ?> 144 154 <strong>Done with the options updates. Now for a bit of comment action</strong></p> -
trunk/wp-includes/functions.php
r609 r614 1661 1661 } 1662 1662 1663 // Check for hacks file if the option is enabled 1664 if (get_settings('hack_file')) { 1665 if (file_exists($abspath . '/my-hacks.php')) 1666 require($abspath . '/my-hacks.php'); 1667 } 1663 1668 ?> -
trunk/wp-settings.php
r612 r614 1 1 <?php 2 // This is the name of the include directory. No "/" allowed.3 $b2inc = 'wp-includes';4 5 require ($abspath . 'wp-config-extra.php');6 require ($abspath . $b2inc . '/wp-db.php');7 require ($abspath . $b2inc . '/functions.php');8 require ($abspath . $b2inc . '/template-functions.php');9 require ($abspath . $b2inc . '/class-xmlrpc.php');10 require ($abspath . $b2inc . '/class-xmlrpcs.php');11 require ($abspath . '/wp-links/links.php');12 13 2 $HTTP_HOST = getenv('HTTP_HOST'); /* domain name */ 14 3 $REMOTE_ADDR = getenv('REMOTE_ADDR'); /* visitor's IP */ … … 30 19 $tableoptiongroup_options = $table_prefix . 'optiongroup_options'; 31 20 21 // This is the name of the include directory. No "/" allowed. 22 $b2inc = 'wp-includes'; 23 24 require ($abspath . 'wp-config-extra.php'); 25 require ($abspath . $b2inc . '/wp-db.php'); 26 require ($abspath . $b2inc . '/functions.php'); 27 require ($abspath . $b2inc . '/template-functions.php'); 28 require ($abspath . $b2inc . '/class-xmlrpc.php'); 29 require ($abspath . $b2inc . '/class-xmlrpcs.php'); 30 require ($abspath . '/wp-links/links.php'); 32 31 33 32 //setup the old globals from b2config.php
Note: See TracChangeset
for help on using the changeset viewer.