[wp-trac] [WordPress Trac] #12286: bug and fix when importing from Movable Type
WordPress Trac
wp-trac at lists.automattic.com
Fri Feb 19 13:26:59 UTC 2010
#12286: bug and fix when importing from Movable Type
--------------------------+-------------------------------------------------
Reporter: leyburn888 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: General | Version:
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
I'm running WP Mu 2.9.1.1 and had a problem importing a Movable Type blog
to WP and found a fix (sort of).
Symptom: When importing a blog from Movable Type to a blog in WP, you are
asked to assign (or map) WP authors to MT authors. But, it turns out that
the first author on the list is assigned to all posts. The other authors
selected are neglected. Therefore, all of the posts end up belonging to
one author.
Fix: I found the problem in wp-admin/import/mt.php. Specifically,
"$mtnames" is not properly populated with authors from MT. So, I changed
the code in function get_authors_from_post() as follows:
function get_authors_from_post() {
$formnames = array ();
$selectnames = array ();
$this->mtnames = $this->get_mt_authors();
I just added the last line shown above and then finally the import
properly assings authors as intended.
(There might be a better place to put the last line, however.)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12286>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list