Add new Option for cross site search allowed ids#12357
Conversation
|
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: May 14, 2019. |
tyxla
left a comment
There was a problem hiding this comment.
LGTM 🚢
Feel free to ping @Automattic/poseidon for a review of the corresponding .com diff.
|
Thanks all! |
* Kick off the changelog * Add 7.3.1 * Update date and post link * changelog: add #12219 * changelog: add #12170 * changelog: add #12184 * Changelog: add #12268 * Changelog: add #12081 * Changelog: add #12323 * Changelog: add #12204 * Changelog: add #12269 * Changelog: add #12332 * changelog: add #12339 * changelog: add #12209 * Changelog: add #12319 * Changelog: add #12357 * Changelog: add #12124 * Changelog: add #12373 * Changelog: add #12252 * Changelog: add #12383 * Changelog: add #12372 * changelog: add #12337 * Changelog: add #12290 * Changelog: add #12301 * Changelog: add #12061 * Testing list: add instructions for #12061 * Changelog: add #12393 * Update minimum supported version See #12287 * Changelog: add #12406 * Testing list: add #12406 * Changelog: add #12277 * Changelog: add #12412 * Changelog: add #11318 * Changelog: add #12328 * Changelog: add #12425 * Changelog: add #12380 * Changelog: add #12428 * Changelog: add #12414 * Changelog: add #12395 * Changelog & Testing list: add #12416, #12417, #12418, and #12348 * changelog: add #12379 * Changelog: add #12341 * changelog: add #12444 * Changelog: add #12434 * Changelog: add #12454 * Changelog: add #12460 * Changelog: add #12463 * Changelog: add #12457 * Changelog / testing list: add #10333 * Changelog: add #12467 Co-authored-by: Jeremy Herve <jeremy@jeremy.hu>
Changes proposed in this Pull Request:
Adds a new, whitelisted, non-compact option name -
allowed_xsite_search_ids.This option will contain an array of other blog ids that are allowed to search the current site's content.
This option will be synced to WP.com for use in the Search endpoint to control access on cross-site searches.
Happy to tweak the option name if there is something better!
Is this a new feature or does it add/remove features to an existing part of Jetpack?
Adds a new option name. See p3QzjZ-Rh-p2 and p6jPRI-20f-p2
Testing instructions:
Jetpack_Options::update_option( 'allowed_xsite_search_ids', array( <some-jp-site-id> ) );<-- should be ok and not complain about invalid option nameProposed changelog entry for your changes: