Changeset 5700 for trunk/wp-admin/includes/upgrade.php
- Timestamp:
- 06/14/2007 02:25:30 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/upgrade.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/upgrade.php
r5643 r5700 188 188 if ( $wp_current_db_version < 4351 ) 189 189 upgrade_old_slugs(); 190 190 191 191 if ( $wp_current_db_version < 5539 ) 192 192 upgrade_230(); 193 193 194 194 195 195 maybe_disable_automattic_widgets(); 196 196 … … 577 577 function upgrade_230() { 578 578 global $wp_current_db_version, $wpdb; 579 579 580 580 if ( $wp_current_db_version < 5200 ) { 581 581 populate_roles_230(); … … 629 629 $tt_ids[$term_id][$taxonomy] = (int) $wpdb->insert_id; 630 630 } 631 631 632 632 if ( empty($count) ) { 633 633 $count = 0; … … 757 757 function __get_option($setting) { 758 758 global $wpdb; 759 759 760 760 if ( $setting == 'home' && defined( 'WP_HOME' ) ) { 761 761 return preg_replace( '|/+$|', '', constant( 'WP_HOME' ) ); 762 762 } 763 763 764 764 if ( $setting == 'siteurl' && defined( 'WP_SITEURL' ) ) { 765 765 return preg_replace( '|/+$|', '', constant( 'WP_SITEURL' ) ); 766 766 } 767 767 768 768 $option = $wpdb->get_var("SELECT option_value FROM $wpdb->options WHERE option_name = '$setting'"); 769 769 … … 1209 1209 function maybe_disable_automattic_widgets() { 1210 1210 $plugins = __get_option( 'active_plugins' ); 1211 1211 1212 1212 foreach ( (array) $plugins as $plugin ) { 1213 1213 if ( basename( $plugin ) == 'widgets.php' ) {
Note: See TracChangeset
for help on using the changeset viewer.