Skip to content

Conversation

@vsolovei-smartling
Copy link
Contributor

No description provided.

Comment on lines 173 to 176
$this->ensureRestoredBlogId();
do_action(ExportedAPI::ACTION_AFTER_TARGET_CONTENT_WRITTEN, $submission);

return $result;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the actual feature and everything else is just refactoring, correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, there is one other major refactoring I'd like to point out, I've extracted SubmissionEntity::generateFileUri into a helper class to avoid having a static call to FileUriHelper. This will make writing tests somewhat simpler, and I've used the refactoring to add logs relevant to an issue the client is experiencing.

@vsolovei-smartling vsolovei-smartling merged commit 9e30493 into master Nov 20, 2023
@vsolovei-smartling vsolovei-smartling deleted the WP-841-after-content-written-hook branch November 20, 2023 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants