@@ -238,6 +238,10 @@ discard block |
||
238 | 238 | // try to send actions until we run out of things to send, |
239 | 239 | // or have to wait more than 15s before sending again, |
240 | 240 | // or we hit a lock or some other sending issue |
241 | + |
|
242 | + /** |
|
243 | + * @param string $type |
|
244 | + */ |
|
241 | 245 | static function do_cron_sync_by_type( $type ) { |
242 | 246 | if ( ! self::sync_allowed() || ( 'sync' !== $type && 'full_sync' !== $type ) ) { |
243 | 247 | return; |
@@ -289,6 +293,9 @@ discard block |
||
289 | 293 | return $sync_modules; |
290 | 294 | } |
291 | 295 | |
296 | + /** |
|
297 | + * @return string |
|
298 | + */ |
|
292 | 299 | static function sanitize_filtered_sync_cron_schedule( $schedule ) { |
293 | 300 | $schedule = sanitize_key( $schedule ); |
294 | 301 | $schedules = wp_get_schedules(); |
@@ -324,6 +331,9 @@ discard block |
||
324 | 331 | ) ); |
325 | 332 | } |
326 | 333 | |
334 | + /** |
|
335 | + * @param string $hook |
|
336 | + */ |
|
327 | 337 | static function maybe_schedule_sync_cron( $schedule, $hook ) { |
328 | 338 | if ( ! $hook ) { |
329 | 339 | return; |