Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context
This PR adds the same
dp_duplicate_post
anddp_duplicate_page
actions when a post is duplicated for Rewrite & Republish that are fired when when a post is cloned. Without these hooks, we can't hook into the Rewrite & Republish process the way we can with the other copy processes.Summary
This PR can be summarized in the following changelog entry:
Test instructions
Test instructions for the acceptance test before the PR gets merged
This PR can be acceptance tested by following these steps:
dp_duplicate_page
hook is fired and includes the duplicate post's ID, the WP_Post object representing the original post, and the status of the new post.dp_duplicate_post
hook is fired and includes the duplicate post's ID, the WP_Post object representing the original post, and the status of the new post.duplicate_rewrite_and_republish_post_copy
hook is fired and includes the duplicate post's ID, the WP_Post object representing the original post, and the status of the new post.Relevant test scenarios
Test instructions for QA when the code is in the RC
Impact check
This PR affects the following parts of the plugin, which may require extra testing:
dp_duplicate_post
anddp_duplicate_page
actions to the Rewrite & Republish process, verify the setting to copy children works since it relies on those actions.dp_duplicate_page
anddp_duplicate_post
hooks aren't fired multiple times when duplicating a post for Rewrite & RepublishUI changes
Documentation
Quality assurance
Innovation
innovation
label and noted the work hours.Fixes #