mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-05 02:10:45 +01:00
Updated for new format thanks to Rantor http://wordpress.org/support/2/769
git-svn-id: http://svn.automattic.com/wordpress/trunk@459 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
45fe889b00
commit
c84bba5e1d
@ -103,12 +103,13 @@ switch ($step) {
|
||||
else
|
||||
{
|
||||
$opml = implode('', file($opml_url));
|
||||
preg_match_all('/<outline text="(.*?)" type="(.*?)" url="(.*?)" title="(.*?)" target="(.*?)" \/>/', $opml, $items);
|
||||
// Updated for new format thanks to Rantor http://wordpress.org/support/2/769
|
||||
preg_match_all('/<outline text="(.*?)" type="(.*?)" url="(.*?)" (lastmod="(.*?)"|) target="(.*?)"*? \/>/',$opml,$items);
|
||||
$names = $items[1];
|
||||
$types = $items[2];
|
||||
$urls = $items[3];
|
||||
$titles = $items[4];
|
||||
$targets = $items[5];
|
||||
$titles = $items[5];
|
||||
$targets = $items[6];
|
||||
$link_count = count($names);
|
||||
for ($i = 0; $i < $link_count; $i++) {
|
||||
if ('Last' == substr($titles[$i], 0, 4))
|
||||
|
Loading…
Reference in New Issue
Block a user