Skip to content
This repository has been archived by the owner on Nov 28, 2019. It is now read-only.

[Importer] Consolidate error action names and signatures in WpPostImporter #48

Open
dnaber-de opened this issue Jan 23, 2016 · 0 comments
Milestone

Comments

@dnaber-de
Copy link
Member

Currently there are several error actions for errors that may occur during one logical process (importing post, importing file, importing term).

I would like to see them combined to one action per entity:

  • wp_import_post_error when something went wrong with the post importing process (including set term relations and meta) The domain should be handled by WP_Errors error code (post, post_meta, post_terms).
  • wp_import_file_error. This includes errors on any file system operation as well as HTTP.

The signature should follow the those of the other importers (described in #39 ): First parameter is an instance of WP_Error followed by the import object. Any other contextual data (response values, IDs, etc.) can be passed as data with the WP_Error object.

Subtask of this: #51

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant