Ticket #5522 (closed enhancement: fixed)

Opened 4 years ago

Last modified 4 years ago

wxr importer refactoring and improvements

Reported by: tellyworth Owned by: 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 Download (11.9 KB) - added by tellyworth 4 years ago.

Change History

comment:1   ryan4 years ago

  • Status changed from new to closed
  • Resolution set to fixed

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

comment:2   ryan4 years ago

  • Milestone changed from 2.5 to 2.4
Note: See TracTickets for help on using tickets.