Completed
Push — add/sync-rest-2 ( c10a39...508315 )
by
unknown
08:57
created
class.jetpack-sync.php 1 patch
Doc Comments   +12 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,8 +88,6 @@  discard block
 block discarded – undo
88 88
 
89 89
 	/**
90 90
 	 * @param string $file __FILE__
91
-	 * @param string $option , Option name to sync
92
-	 * @param string $option ...
93 91
 	 */
94 92
 	static function sync_constant( $file, $constant ) {
95 93
 		if ( is_network_admin() ) {
@@ -158,6 +156,9 @@  discard block
 block discarded – undo
158 156
 		return true;
159 157
 	}
160 158
 
159
+	/**
160
+	 * @param string $to_sync
161
+	 */
161 162
 	static function trigger_sync( $to_sync ) {
162 163
 		$jetpack_sync = Jetpack::init()->sync;
163 164
 		if ( ! isset( $jetpack_sync->sync ) && empty( $jetpack_sync->sync ) ) {
@@ -404,6 +405,9 @@  discard block
 block discarded – undo
404 405
 		$this->transition_post_status_action( 'delete', $post->post_status, $post );
405 406
 	}
406 407
 
408
+	/**
409
+	 * @param string $new_status
410
+	 */
407 411
 	function transition_post_status_action( $new_status, $old_status, $post ) {
408 412
 		$sync = $this->get_post_sync_operation( $new_status, $old_status, $post, $this->sync_conditions['posts'] );
409 413
 		if ( ! $sync ) {
@@ -807,6 +811,11 @@  discard block
 block discarded – undo
807 811
 	/* Options Sync */
808 812
 
809 813
 	/* Ah... so much simpler than Posts and Comments :) */
814
+
815
+	/**
816
+	 * @param string $file
817
+	 * @param string $option
818
+	 */
810 819
 	function options( $file, $option /*, $option, ... */ ) {
811 820
 		$options = func_get_args();
812 821
 		$file    = array_shift( $options );
@@ -915,6 +924,7 @@  discard block
 block discarded – undo
915 924
 
916 925
 	/**
917 926
 	 * Returns default values of Constants
927
+	 * @param string $constant
918 928
 	 */
919 929
 	function default_constant( $constant ) {
920 930
 		switch ( $constant ) {
Please login to merge, or discard this patch.
sync/class.jetpack-sync-posts.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -132,6 +132,9 @@
 block discarded – undo
132 132
 		return self::json_api( self::get_post_api_url( $post_id) );
133 133
 	}
134 134
 
135
+	/**
136
+	 * @param string $url
137
+	 */
135 138
 	static function json_api( $url, $method = 'GET' ) {
136 139
 
137 140
 		require_once JETPACK__PLUGIN_DIR . 'class.json-api.php';
Please login to merge, or discard this patch.