-
Notifications
You must be signed in to change notification settings - Fork 846
Connection: Instantiate the XML-RPC Connector after adding Bootstrap Methods #13139
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 the great PR description! When this PR is ready for review, please apply the Scheduled Jetpack release: August 6, 2019. |
oskosk
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.
:impressive-quake:
|
I added some tests in 51d3ec0. They required a refactor. Do we want this here or in a different PR? |
| } | ||
| } | ||
|
|
||
| function setup_xmlrpc_handlers( $request_params, $is_active, $is_signed, Jetpack_XMLRPC_Server $xmlrpc_server = null ) { |
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.
should we move this to the connection package?
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.
What do you say we move everything into the connection package in #12699 later? This block depends on a lot of static methods that I don't feel comfortable moving right before the code freeze.
zinigor
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.
Love the tests, thank you for fixing the problem!
zinigor
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.
Ouch, just noticed failing Travis tests :)
zinigor
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.
I know it's probably backwards, but I have amended the expectations in the failing tests to include XMLRPC methods that were added by publicize and subscription methods.
be2b662 to
88eb891
Compare
|
Rebased to fix the tests. Testing now. |
|
Tests are still failing I am afraid :( |
|
Tests pass now. |
zinigor
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 is perfect, thank you!
* Add initial changelog / testing list changes for 7.6 * Update stable tag to 7.5.3 * changelog: add #12957 * Changelog: add #12932 * Changelog: add #12867 * Changelog: add #12823 * changelog: add #12969 * changelog: add #13012 * changelog: add #12974 * Changelog: add #13059 * Changelog: add #13079 * Changelog: add #12924 * changelog: add #12954 * Changelog: add #12959 * Changelog: add #12977 * Changelog: add #12830 * Changelog: add #12926 * Changelog: add #12958 * Changelog: add #12999 * Changelog: add #13077 * Changelog: add #13083 * Changelog: add #13087 * Changelog: add #13110 * Changelog: add #13116 * Changelog: add #13117 * Changelog: add #12821 * Changelog: add #13120 * changelog: add #13139 * Changelog: add #13143 * Changelog: add #13147 * Testing list: add section about sync
* Add initial changelog / testing list changes for 7.6 * Update stable tag to 7.5.3 * changelog: add #12957 * Changelog: add #12932 * Changelog: add #12867 * Changelog: add #12823 * changelog: add #12969 * changelog: add #13012 * changelog: add #12974 * Changelog: add #13059 * Changelog: add #13079 * Changelog: add #12924 * changelog: add #12954 * Changelog: add #12959 * Changelog: add #12977 * Changelog: add #12830 * Changelog: add #12926 * Changelog: add #12958 * Changelog: add #12999 * Changelog: add #13077 * Changelog: add #13083 * Changelog: add #13087 * Changelog: add #13110 * Changelog: add #13116 * Changelog: add #13117 * Changelog: add #12821 * Changelog: add #13120 * changelog: add #13139 * Changelog: add #13143 * Changelog: add #13147 * Testing list: add section about sync
74765c1 whitelisted Jetpack's REST API endpoints, but that wasn't enough to allow sites to connect to WordPress.com without XMLRPC. Automattic/jetpack#13139 will restore the XMLRPC Connector in Jetpack proper once the upcoming version is released, so it's not worth wasting time investigating why the REST endpoints aren't enough. The hotfix in this commit should restore the ability to connect in the meantime.
Fixes #13136, #13084.
Changes proposed in this Pull Request:
The bootstrap filter clears out all existing XML-RPC methods, so adding the connector methods first does not work.
With this new order, the connector's methods are appended to the bootstrap methods.
Is this a new feature or does it add/remove features to an existing part of Jetpack?
Fixes a bug.
Testing instructions:
Confirm that a new site connects via XML-RPC.
Proposed changelog entry for your changes:
Bring back the ability to connect to WordPress.com via XML-RPC or REST API.