Changeset 459

Show
Ignore:
Timestamp:
10/21/03 23:20:55 (5 years ago)
Author:
mikelittle
Message:

Updated for new format thanks to Rantor http://wordpress.org/support/2/769

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/links.import.php

    r303 r459  
    104104                { 
    105105                    $opml = implode('', file($opml_url)); 
    106                     preg_match_all('/<outline text="(.*?)" type="(.*?)" url="(.*?)" title="(.*?)" target="(.*?)"  \/>/', $opml, $items); 
     106                    // Updated for new format thanks to Rantor http://wordpress.org/support/2/769 
     107                    preg_match_all('/<outline text="(.*?)" type="(.*?)" url="(.*?)" (lastmod="(.*?)"|) target="(.*?)"*? \/>/',$opml,$items); 
    107108                    $names = $items[1]; 
    108109                    $types = $items[2]; 
    109110                    $urls = $items[3]; 
    110                     $titles = $items[4]; 
    111                     $targets = $items[5]; 
     111                    $titles = $items[5]; 
     112                    $targets = $items[6]; 
    112113                    $link_count = count($names); 
    113114                    for ($i = 0; $i < $link_count; $i++) {