inpsyde / wpml2mlp

Convert posts from an existing WPML multilingual site via WXR Export/Import for MultilingualPress
https://wordpress.org/plugins/wpml-to-multilingualpress/
GNU General Public License v2.0
10 stars 6 forks source link

[Importer] Refactor WpPostImporter #57

Open dnaber-de opened 8 years ago

dnaber-de commented 8 years ago

Main goal is: Separation of concerns. That leads to a separation to independent classes of the following features:

After the refactoring, the one concern of the existing WpPostImporter class will be to fetch data from the Type\ImportPostInterface and pass it to wp_instert_post() and handling errors within this process. The action w2m_post_imported persists as part of this with the current signature.

The interfaces of the newly provided actors will follow the signature of this action as they'll be registered to this hook.