Changeset 459
- Timestamp:
- 10/21/2003 11:20:55 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/links.import.php
r303 r459 104 104 { 105 105 $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); 107 108 $names = $items[1]; 108 109 $types = $items[2]; 109 110 $urls = $items[3]; 110 $titles = $items[ 4];111 $targets = $items[ 5];111 $titles = $items[5]; 112 $targets = $items[6]; 112 113 $link_count = count($names); 113 114 for ($i = 0; $i < $link_count; $i++) {
Note: See TracChangeset
for help on using the changeset viewer.