-
Notifications
You must be signed in to change notification settings - Fork 800
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
Decouple Publicize Connection Lists from UI Take 2 #10396
Conversation
…d by commas :) The JS does this. So should the PHP.
Caution: This PR has changes that must be merged to WordPress.com |
Thank you for the great PR description! When this PR is ready for review, please apply the Scheduled Jetpack release: November 6, 2018. Generated by 🚫 dangerJS |
It has Jetpack implementation details.
Disabled checkboxes are never included in form submissions. This is why we need the hidden form fields whenever we have a checked, disabled checkbox. Always show the checkbox (in the correct checked state). Look at `toggleable` and `enabled` to see if we need the hidden form field.
Be explicit about expected global/normal behavior.
Output both these human-readable properties separately so that clients can decide for themselves how to display them.
Caution: This PR has changes that must be merged to WordPress.com |
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.
Left a few comments -- nothing major tho.
I tested this with the same instructions as #10043. LGTM! Ready to 🚢 IMO
Caution: This PR has changes that must be merged to WordPress.com |
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.
I ran some tests with the different interfaces, with different Publicize connections, and with different statuses in wp-admin; I could not spot any issues. I think you can merge when ready.
Caution: This PR has changes that must be merged to WordPress.com |
Consistency with other `post_is...()` functions.
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.
LGTM! thanks for the instructions!
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.
Functionality tested and looked at the two commits since last review.
Take 2 of the excellent #9955 by @c-shultz. See #9039.
Updated to work on top of #10043.
Changes proposed in this Pull Request:
Publicize_Base
to get the list of Publicize Connections suitable for use in UI.Publicize_UI
.Testing instructions:
Automated Tests
yarn docker:phpunit --filter=WP_Test_Publicize
Manual Tests
Proposed changelog entry for your changes:
None? Part of a larger initiative to provide Publicize data via REST API.