diff options
| author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-05-22 16:01:30 +0000 |
|---|---|---|
| committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-05-22 16:01:30 +0000 |
| commit | 9f7e83e519a5c1aabdb95f62f97ae79e863a23fe (patch) | |
| tree | e3c6ab3c587d8c09126eca0692393fedfdc59885 /wp-admin | |
| parent | 0bc6b8cbf0df81e3841b88f1ab6726612daec75e (diff) | |
| download | wordpress-mu-9f7e83e519a5c1aabdb95f62f97ae79e863a23fe.tar.gz wordpress-mu-9f7e83e519a5c1aabdb95f62f97ae79e863a23fe.tar.xz wordpress-mu-9f7e83e519a5c1aabdb95f62f97ae79e863a23fe.zip | |
Use snoopy all the time, avoids problems with fopen()
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1306 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin')
| -rw-r--r-- | wp-admin/wpmu-upgrade-site.php | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/wp-admin/wpmu-upgrade-site.php b/wp-admin/wpmu-upgrade-site.php index 96d27b9..a334dca 100644 --- a/wp-admin/wpmu-upgrade-site.php +++ b/wp-admin/wpmu-upgrade-site.php @@ -1,10 +1,6 @@ <?php require_once('admin.php'); - -$http_fopen = ini_get("allow_url_fopen"); -if( !$http_fopen ) { - require_once('../wp-includes/class-snoopy.php'); -} +require_once( ABSPATH . 'wp-includes/class-snoopy.php' ); $title = __('WordPress MU › Admin › Upgrade Site'); $parent_file = 'wpmu-admin.php'; @@ -27,18 +23,8 @@ switch( $_GET['action'] ) { if( $details['spam'] == 0 && $details['deleted'] == 0 && $details['archived'] == 0 ) { $siteurl = $wpdb->get_var("SELECT option_value from {$wpdb->base_prefix}{$details['blog_id']}_options WHERE option_name = 'siteurl'"); echo "<li>$siteurl</li>"; - if( $http_fopen ) { - $fp = fopen( $siteurl . "wp-admin/upgrade.php?step=1", "r" ); - if( $fp ) { - while( feof( $fp ) == false ) { - fgets($fp, 4096); - } - fclose( $fp ); - } - } else { - $client = new Snoopy(); - @$client->fetch($siteurl . "wp-admin/upgrade.php?step=1"); - } + $client = new Snoopy(); + @$client->fetch($siteurl . "wp-admin/upgrade.php?step=1"); } } echo "</ul>"; |
