Skip to content

Commit

Permalink
Sync: revert #31423 (#31685)
Browse files Browse the repository at this point in the history
* Revert "Sync: initialize Dedicated Sync endpoint earlier (#31423)"

This reverts commit 38da01b.

* changelog

* Update projects/packages/sync/changelog/revert-pr-31423

Co-authored-by: Brad Jorsch <[email protected]>

---------

Co-authored-by: Brad Jorsch <[email protected]>
  • Loading branch information
samiff and anomiex authored Jul 4, 2023
1 parent bb61166 commit 868859c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions projects/packages/sync/changelog/revert-pr-31423
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Revert dedicated hook endpoint to later in the 'init' hook, as it broke existing code that registers post statuses and such during 'init'.
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' ), 0 );
add_action( 'init', array( __CLASS__, 'add_dedicated_sync_sender_init' ), 90 );
return;
}

Expand Down

0 comments on commit 868859c

Please sign in to comment.