Skip to content
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

Sync: initialize Dedicated Sync endpoint earlier #31423

Merged
merged 4 commits into from
Jun 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions projects/packages/sync/changelog/fix-dedicated-sync-cookies
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Initialize dedicated hook endpoint earlier in the 'init' hook to avoid cookie conflicts.
2 changes: 1 addition & 1 deletion projects/packages/sync/src/class-actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public static function init() {
// rely on 'jetpack_sync_before_send_queue_sync' are picked up and added to the queue if needed.
if ( Settings::is_dedicated_sync_enabled() && Dedicated_Sender::is_dedicated_sync_request() ) {
self::initialize_listener();
add_action( 'init', array( __CLASS__, 'add_dedicated_sync_sender_init' ), 90 );
add_action( 'init', array( __CLASS__, 'add_dedicated_sync_sender_init' ), 0 );
return;
}

Expand Down
2 changes: 1 addition & 1 deletion projects/packages/sync/src/class-package-version.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
class Package_Version {

const PACKAGE_VERSION = '1.49.0';
const PACKAGE_VERSION = '1.49.1-alpha';

const PACKAGE_SLUG = 'sync';

Expand Down