@@ -195,16 +195,27 @@ discard block |
||
| 195 | 195 | $this->network_options_whitelist = $options; |
| 196 | 196 | } |
| 197 | 197 | |
| 198 | + /** |
|
| 199 | + * @param integer $size |
|
| 200 | + */ |
|
| 198 | 201 | function set_send_buffer_memory_size( $size ) { |
| 199 | 202 | $this->checkout_memory_size = $size; |
| 200 | 203 | } |
| 201 | 204 | |
| 202 | 205 | // in bytes |
| 206 | + |
|
| 207 | + /** |
|
| 208 | + * @param integer $max_bytes |
|
| 209 | + */ |
|
| 203 | 210 | function set_upload_max_bytes( $max_bytes ) { |
| 204 | 211 | $this->upload_max_bytes = $max_bytes; |
| 205 | 212 | } |
| 206 | 213 | |
| 207 | 214 | // in rows |
| 215 | + |
|
| 216 | + /** |
|
| 217 | + * @param integer $max_rows |
|
| 218 | + */ |
|
| 208 | 219 | function set_upload_max_rows( $max_rows ) { |
| 209 | 220 | $this->upload_max_rows = $max_rows; |
| 210 | 221 | } |
@@ -476,6 +487,9 @@ discard block |
||
| 476 | 487 | } |
| 477 | 488 | } |
| 478 | 489 | |
| 490 | + /** |
|
| 491 | + * @param string $action_name |
|
| 492 | + */ |
|
| 479 | 493 | private function buffer_includes_action( $buffer, $action_name ) { |
| 480 | 494 | foreach ( $buffer->get_items() as $item ) { |
| 481 | 495 | if ( $item[0] === $action_name ) { |
@@ -505,6 +519,9 @@ discard block |
||
| 505 | 519 | return $post; |
| 506 | 520 | } |
| 507 | 521 | |
| 522 | + /** |
|
| 523 | + * @param string $when |
|
| 524 | + */ |
|
| 508 | 525 | private function schedule_sync( $when ) { |
| 509 | 526 | wp_schedule_single_event( strtotime( $when ), 'jetpack_sync_actions' ); |
| 510 | 527 | } |