Ticket #5522 (closed enhancement: fixed)

Opened 7 months ago

Last modified 7 months ago

wxr importer refactoring and improvements

Reported by: tellyworth Assigned to: anonymous
Priority: normal Milestone: 2.5
Component: General Version:
Severity: normal Keywords: has-patch
Cc:

Description

This patch includes several improvements to the wxr importer:

* The code for handling author names and mapping them to local user names is refactored and simplified. The old code was copied straight from the MT importer; the new version is easier to follow and runs faster on sites with large user tables.

* Gzipped files are supported if zlib is available (this fixes one half of #5485).

* There's a simple check to confirm whether or not the file appears to be the correct format. An error is displayed if it is not. Previously the importer would silently ignore a file if it was the wrong format.

* Filters are added to make it possible to turn off the ability to add new users and download files. There's also a filter for specifying a maximum size for attachment imports. These are mainly of interest for wpmu.

* Failed attachment downloads are removed.

* The uploaded import file is given a '.import' extension.

* import_start and import_end actions are added.

Attachments

importer-author-refactor-r6435-4.patch (11.9 kB) - added by tellyworth on 12/24/07 05:21:22.

Change History

12/24/07 05:21:22 changed by tellyworth

  • attachment importer-author-refactor-r6435-4.patch added.

12/24/07 06:20:35 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

(In [6477]) Importer refactoring from tellyworth. fixes #5522

12/24/07 06:20:47 changed by ryan

  • milestone changed from 2.5 to 2.4.