diff --git a/packages/sync/src/class-sender.php b/packages/sync/src/class-sender.php index 8414b594813f0..a5279964a9ba2 100644 --- a/packages/sync/src/class-sender.php +++ b/packages/sync/src/class-sender.php @@ -548,6 +548,27 @@ public function send_action( $action_name, $data ) { return $processed_item_ids; } + /** + * Create an synthetic action for direct sending to WPCOM during full sync (for example) + * + * @access protected + * + * @param string $action_name The action. + * @param array $data The data associated with the action. + * @return array An array of synthetic sync actions keyed by current microtime(true) + */ + private function create_action_to_send( $action_name, $data ) { + return [ + microtime( true ) => [ + $action_name, + $data, + get_current_user_id(), + microtime( true ), + Settings::is_importing(), + ], + ]; + } + /** * Returns any object that is able to be synced. * diff --git a/packages/sync/src/modules/class-module.php b/packages/sync/src/modules/class-module.php index 65b1e85cfe2d8..ac4049b6f8b2b 100644 --- a/packages/sync/src/modules/class-module.php +++ b/packages/sync/src/modules/class-module.php @@ -341,27 +341,6 @@ public function send_action( $action_name, $data ) { return $sender->send_action( $action_name, $data ); } - /** - * Create an synthetic action for direct sending to WPCOM during full sync (for example) - * - * @access protected - * - * @param string $action_name The action. - * @param array $data The data associated with the action. - * @return array An array of synthetic sync actions keyed by current microtime(true) - */ - private function create_action_to_send( $action_name, $data ) { - return [ - microtime( true ) => [ - $action_name, - $data, - get_current_user_id(), - microtime( true ), - Settings::is_importing(), - ], - ]; - } - /** * Retrieve chunk IDs with previous interval end. *