Completed
Push — fix/save-full-sync-status-duri... ( 8ffb13...5a5ed4 )
by
unknown
10:50
created
sync/class.jetpack-sync-module-full-sync.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -278,6 +278,9 @@  discard block
 block discarded – undo
278 278
 		$listener->get_full_sync_queue()->reset();
279 279
 	}
280 280
 
281
+	/**
282
+	 * @param integer $default
283
+	 */
281 284
 	private function get_status_option( $name, $default = null ) {
282 285
 		$prefix = self::STATUS_OPTION_PREFIX;
283 286
 
@@ -312,6 +315,9 @@  discard block
 block discarded – undo
312 315
 		return $this->read_option( 'jetpack_sync_full_config' );
313 316
 	}
314 317
 
318
+	/**
319
+	 * @param string $name
320
+	 */
315 321
 	private function write_option( $name, $value ) {
316 322
 		// we write our own option updating code to bypass filters/caching/etc on set_option/get_option
317 323
 		global $wpdb;
@@ -339,6 +345,9 @@  discard block
 block discarded – undo
339 345
 		return $updated_num;
340 346
 	}
341 347
 
348
+	/**
349
+	 * @param string $name
350
+	 */
342 351
 	private function read_option( $name, $default = null ) {
343 352
 		global $wpdb;
344 353
 		$value = $wpdb->get_var( 
@@ -374,6 +383,9 @@  discard block
 block discarded – undo
374 383
 		$this->queue_items_added( 1 );
375 384
 	}
376 385
 
386
+	/**
387
+	 * @param integer $item_count
388
+	 */
377 389
 	public function queue_items_added( $item_count ) {
378 390
 		// jpsq_item_added and jpsq_items_added both exec 1 db query, 
379 391
 		// so we ignore $item_count and treat it as always 1
Please login to merge, or discard this patch.