post-page

Blogroll import OPML bug in WordPress 0.72

No
responses
by
 
on
October 17th, 2003
in
General

I ran into some problems importing from BlogRolling OPML code into WordPress 0.72. I took a very quick look and realized that the regular expressions dont match the OPML. I made some changes to WordPress and I hope this helps someone.
Steps:
1) Look for links.import.php in the wp-admin folder.
2) Around line 108, replace the preg_match_all(‘/ preg_match_all('//’,$opml,$items);

PS: Links in your BlogRoll which have never notified Blogrolling.com of updates will not transfer over with this script. (the way it stands now) My reg-ex knowledge is years old and I havent spent enough time fixing it. But basically, the “lastmod” item does not show up for those links that have never been updated and so those lines do not match the regular expression and gets left out. If I consider those to be optional through my expression, the code breaks because it keeps track of these items in an array which is dynamically generated.

heading
heading
No
Responses

 

Comments are closed.

Obviously Powered by WordPress. © 2003-2013

page counter
css.php