-
Notifications
You must be signed in to change notification settings - Fork 850
Publicize: Allow publicizing via AJAX requests, except for auto-save and quick edits. #24387
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Once your PR is ready for review, check one last time that all required checks (other than "Required review") appearing at the bottom of this PR are passing or skipped. Jetpack plugin:
|
|
Caution: This PR has changes that must be merged to WordPress.com |
pablinos
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How easy do you think it would be to add a test for this? I suspect not that easy, but if we can add one, it would be great.
I played around with this for a bit, but looks like we need to mock a post request with form data to the admin-ajax endpoint. So, it is not very straightforward, so perhaps we can revisit this later? |
|
With the timeline, let's pass on the test for time and add it in a follow-up PR. @pablinos is the one comment on the |
Yeah, it was just a thought if it was quick to add, but it isn't! I think this is all good. Just need to do a bit more testing. |
pablinos
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good. Tested that publishing in Elementor triggers Publicize, but also that quick edit and bulk edit don't.
jeherve
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to test well for me. 🚢
|
Great news! One last step: head over to your WordPress.com diff, D80924-code, and deploy it. Thank you! |
|
r245861-wpcom |
… for auto-save and quick edits. (#24387) * Fix post not getting publicized when published via elementor. * changelog * Change logic to DOING_AUTOSAVE from DOING_AJAX * changelog * Removed comment. * Don't allow publicizing on quick edits. * Added check to publicize.php as well * Fix the action for quick-edit. * Changed comment to check if fusion is picking up the change.
|
Cherry-picked to |
|
Package was updated in the release branch in d800479 |
Fixes #24383
Changes proposed in this Pull Request:
Jetpack product discussion
p1652771316583739-slack-C02JJ910CNL
Does this pull request change what data or activity we track or use?
No
Testing instructions: