Make WordPress Core


Ignore:
Timestamp:
06/14/2007 02:25:30 AM (19 years ago)
Author:
ryan
Message:

Trim empty lines. Nothing but newline.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/upgrade.php

    r5643 r5700  
    188188        if ( $wp_current_db_version < 4351 )
    189189                upgrade_old_slugs();
    190        
     190
    191191        if ( $wp_current_db_version < 5539 )
    192192                upgrade_230();
    193193
    194        
     194
    195195        maybe_disable_automattic_widgets();
    196196
    … …  
    577577function upgrade_230() {
    578578        global $wp_current_db_version, $wpdb;
    579        
     579
    580580        if ( $wp_current_db_version < 5200 ) {
    581581                populate_roles_230();
    … …  
    629629                        $tt_ids[$term_id][$taxonomy] = (int) $wpdb->insert_id;
    630630                }
    631                
     631
    632632                if ( empty($count) ) {
    633633                        $count = 0;
    … …  
    757757function __get_option($setting) {
    758758        global $wpdb;
    759        
     759
    760760        if ( $setting == 'home' && defined( 'WP_HOME' ) ) {
    761761                return preg_replace( '|/+$|', '', constant( 'WP_HOME' ) );
    762762        }
    763        
     763
    764764        if ( $setting == 'siteurl' && defined( 'WP_SITEURL' ) ) {
    765765                return preg_replace( '|/+$|', '', constant( 'WP_SITEURL' ) );
    766766        }
    767        
     767
    768768        $option = $wpdb->get_var("SELECT option_value FROM $wpdb->options WHERE option_name = '$setting'");
    769769
    … …  
    12091209function maybe_disable_automattic_widgets() {
    12101210        $plugins = __get_option( 'active_plugins' );
    1211        
     1211
    12121212        foreach ( (array) $plugins as $plugin ) {
    12131213                if ( basename( $plugin ) == 'widgets.php' ) {
Note: See TracChangeset for help on using the changeset viewer.