@@ -321,6 +321,9 @@ |
||
| 321 | 321 | return self::DEFAULT_SYNC_CRON_INTERVAL; |
| 322 | 322 | } |
| 323 | 323 | |
| 324 | + /** |
|
| 325 | + * @param string $hook |
|
| 326 | + */ |
|
| 324 | 327 | static function maybe_schedule_sync_cron( $schedule, $hook ) { |
| 325 | 328 | if ( ! $hook ) { |
| 326 | 329 | return; |
@@ -107,6 +107,9 @@ discard block |
||
| 107 | 107 | self::set_is_sending( null ); |
| 108 | 108 | } |
| 109 | 109 | |
| 110 | + /** |
|
| 111 | + * @param boolean|null $is_importing |
|
| 112 | + */ |
|
| 110 | 113 | static function set_importing( $is_importing ) { |
| 111 | 114 | // set to NULL to revert to WP_IMPORTING, the standard behaviour |
| 112 | 115 | self::$is_importing = $is_importing; |
@@ -137,6 +140,9 @@ discard block |
||
| 137 | 140 | return (bool) self::$is_syncing; |
| 138 | 141 | } |
| 139 | 142 | |
| 143 | + /** |
|
| 144 | + * @param boolean|null $is_syncing |
|
| 145 | + */ |
|
| 140 | 146 | static function set_is_syncing( $is_syncing ) { |
| 141 | 147 | self::$is_syncing = $is_syncing; |
| 142 | 148 | } |
@@ -145,6 +151,9 @@ discard block |
||
| 145 | 151 | return (bool) self::$is_sending; |
| 146 | 152 | } |
| 147 | 153 | |
| 154 | + /** |
|
| 155 | + * @param boolean|null $is_sending |
|
| 156 | + */ |
|
| 148 | 157 | static function set_is_sending( $is_sending ) { |
| 149 | 158 | self::$is_sending = $is_sending; |
| 150 | 159 | } |