@@ -323,6 +323,9 @@ discard block |
||
| 323 | 323 | $this->codec = $codec; |
| 324 | 324 | } |
| 325 | 325 | |
| 326 | + /** |
|
| 327 | + * @param Jetpack_Sync_Full $full_sync_client |
|
| 328 | + */ |
|
| 326 | 329 | function set_full_sync_client( $full_sync_client ) { |
| 327 | 330 | if ( $this->full_sync_client ) { |
| 328 | 331 | remove_action( 'jetpack_sync_full', array( $this->full_sync_client, 'start' ) ); |
@@ -516,6 +519,9 @@ discard block |
||
| 516 | 519 | } |
| 517 | 520 | } |
| 518 | 521 | |
| 522 | + /** |
|
| 523 | + * @param string $action_name |
|
| 524 | + */ |
|
| 519 | 525 | private function buffer_includes_action( $buffer, $action_name ) { |
| 520 | 526 | foreach( $buffer->get_items() as $item ) { |
| 521 | 527 | if ( $item[0] === $action_name ) { |
@@ -525,6 +531,9 @@ discard block |
||
| 525 | 531 | return false; |
| 526 | 532 | } |
| 527 | 533 | |
| 534 | + /** |
|
| 535 | + * @param string $when |
|
| 536 | + */ |
|
| 528 | 537 | private function schedule_sync( $when ) { |
| 529 | 538 | wp_schedule_single_event( strtotime( $when ), 'jetpack_sync_actions' ); |
| 530 | 539 | } |
@@ -149,6 +149,10 @@ |
||
| 149 | 149 | $this->set_status("updates", 100); |
| 150 | 150 | } |
| 151 | 151 | |
| 152 | + /** |
|
| 153 | + * @param string $name |
|
| 154 | + * @param integer $percent |
|
| 155 | + */ |
|
| 152 | 156 | private function set_status( $name, $percent, $count = 1, $total =1 ) { |
| 153 | 157 | set_transient( self::$status_transient_name.'_'.$name, array( |
| 154 | 158 | 'phase' => 'preparing', |