WordPress.org

Make WordPress Core

Changeset 5439


Ignore:
Timestamp:
05/10/2007 09:21:54 PM (15 years ago)
Author:
ryan
Message:

Handle local and remote blogroll imports. Props apokalyptik. fixes #4243 for 2.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/link-import.php

    r5011 r5439  
    9494
    9595        if ( isset($opml_url) && $opml_url != '' ) {
    96             $opml = wp_remote_fopen($opml_url);
     96            if ( $blogrolling === true ) {
     97                $opml = wp_remote_fopen($opml_url);
     98            } else {
     99                $opml = file_get_contents($opml_url);
     100            }
     101           
    97102            include_once('link-parse-opml.php');
    98103
     
    119124
    120125if ( ! $blogrolling )
     126    apply_filters( 'wp_delete_file', $opml_url);
    121127    @unlink($opml_url);
    122128?>
Note: See TracChangeset for help on using the changeset viewer.