Make WordPress Core

Changeset 459


Ignore:
Timestamp:
10/21/2003 11:20:55 PM (22 years ago)
Author:
mikelittle
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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++) {
Note: See TracChangeset for help on using the changeset viewer.