← All changes
|
jetpack_vendor/automattic/jetpack-sync/src/class-server.php
+12
-11
12.0.3
→
16.3-a.1
View file →
| @@ -18,9 +18,9 @@ | ||
| 18 | 18 | * Codec used to decode sync events. |
| 19 | 19 | * |
| 20 | 20 | * @access private |
| 21 | 21 | * |
| 22 | - * @var Automattic\Jetpack\Sync\Codec_Interface | |
| 22 | + * @var \Automattic\Jetpack\Sync\Codec_Interface | |
| 23 | 23 | */ |
| 24 | 24 | private $codec; |
| 25 | 25 | |
| 26 | 26 | /** |
| @@ -138,9 +138,9 @@ | ||
| 138 | 138 | * |
| 139 | 139 | * @since 1.6.3 |
| 140 | 140 | * @since-jetpack 4.2.0 |
| 141 | 141 | * |
| 142 | - * @param token The token object of the misbehaving site | |
| 142 | + * @param object|null $token The token object of the misbehaving site | |
| 143 | 143 | */ |
| 144 | 144 | do_action( 'jetpack_sync_multi_request_fail', $token ); |
| 145 | 145 | |
| 146 | 146 | return new WP_Error( 'concurrent_request_error', 'There is another request running for the same blog ID' ); |
| @@ -154,9 +154,10 @@ | ||
| 154 | 154 | * |
| 155 | 155 | * @since 1.6.3 |
| 156 | 156 | * @since-jetpack 4.2.0 |
| 157 | 157 | * |
| 158 | - * @param array Array of actions received from the remote site | |
| 158 | + * @param array $events Array of actions received from the remote site | |
| 159 | + * @param object|null $token The auth token used to invoke the API | |
| 159 | 160 | */ |
| 160 | 161 | do_action( 'jetpack_sync_remote_actions', $events, $token ); |
| 161 | 162 | |
| 162 | 163 | foreach ( $events as $key => $event ) { |
| @@ -167,16 +168,16 @@ | ||
| 167 | 168 | * |
| 168 | 169 | * @since 1.6.3 |
| 169 | 170 | * @since-jetpack 4.2.0 |
| 170 | 171 | * |
| 171 | - * @param string $action_name The name of the action executed on the remote site | |
| 172 | - * @param array $args The arguments passed to the action | |
| 173 | - * @param int $user_id The external_user_id who did the action | |
| 174 | - * @param bool $silent Whether the item was created via import | |
| 175 | - * @param double $timestamp Timestamp (in seconds) when the action occurred | |
| 176 | - * @param double $sent_timestamp Timestamp (in seconds) when the action was transmitted | |
| 177 | - * @param string $queue_id ID of the queue from which the event was sent (sync or full_sync) | |
| 178 | - * @param array $token The auth token used to invoke the API | |
| 172 | + * @param string $action_name The name of the action executed on the remote site | |
| 173 | + * @param array $args The arguments passed to the action | |
| 174 | + * @param int $user_id The external_user_id who did the action | |
| 175 | + * @param bool $silent Whether the item was created via import | |
| 176 | + * @param double $timestamp Timestamp (in seconds) when the action occurred | |
| 177 | + * @param double $sent_timestamp Timestamp (in seconds) when the action was transmitted | |
| 178 | + * @param string $queue_id ID of the queue from which the event was sent (sync or full_sync) | |
| 179 | + * @param object|null $token The auth token used to invoke the API | |
| 179 | 180 | */ |
| 180 | 181 | do_action( 'jetpack_sync_remote_action', $action_name, $args, $user_id, $silent, $timestamp, $sent_timestamp, $queue_id, $token ); |
| 181 | 182 | |
| 182 | 183 | $events_processed[] = $key; |