WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/04/2010 07:26:38 PM (11 years ago)
Author:
wpmuguru
Message:

add siteurl filter for ms upgrades, props nacin, fixes #12069

File:
1 edited

Legend:

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

    r12808 r12952  
    3434            foreach ( (array) $blogs as $details ) {
    3535                if ( $details['spam'] == 0 && $details['deleted'] == 0 && $details['archived'] == 0 ) {
    36                     $blog_prefix = $wpdb->get_blog_prefix( $details[ 'blog_id' ] );
    37                     $siteurl = $wpdb->get_var( "SELECT option_value from {$blog_prefix}options WHERE option_name = 'siteurl'" );
     36                    $siteurl = get_blog_option( $details['blog_id'], 'siteurl' );
    3837                    echo "<li>$siteurl</li>";
    3938                    $response = wp_remote_get( trailingslashit( $siteurl ) . "wp-admin/upgrade.php?step=1", array( 'timeout' => 120, 'httpversion' => '1.1' ) );
Note: See TracChangeset for help on using the changeset viewer.