Completed
Push — update/plugins-api-endpoints-v... ( c8416d...bf6fad )
by
unknown
08:12
created
json-endpoints/class.wpcom-json-api-update-post-v1-1-endpoint.php 1 patch
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -28,6 +28,11 @@  discard block
 block discarded – undo
28 28
 
29 29
 	// /sites/%s/posts/new       -> $blog_id
30 30
 	// /sites/%s/posts/%d        -> $blog_id, $post_id
31
+
32
+	/**
33
+	 * @param string $path
34
+	 * @param integer $post_id
35
+	 */
31 36
 	function write_post( $path, $blog_id, $post_id ) {
32 37
 		global $wpdb;
33 38
 
@@ -704,6 +709,10 @@  discard block
 block discarded – undo
704 709
 	}
705 710
 
706 711
 	// /sites/%s/posts/%d/delete -> $blog_id, $post_id
712
+
713
+	/**
714
+	 * @param string $path
715
+	 */
707 716
 	function delete_post( $path, $blog_id, $post_id ) {
708 717
 		$post = get_post( $post_id );
709 718
 		if ( !$post || is_wp_error( $post ) ) {
@@ -743,6 +752,11 @@  discard block
 block discarded – undo
743 752
 	}
744 753
 
745 754
 	// /sites/%s/posts/%d/restore -> $blog_id, $post_id
755
+
756
+	/**
757
+	 * @param string $path
758
+	 * @param integer $post_id
759
+	 */
746 760
 	function restore_post( $path, $blog_id, $post_id ) {
747 761
 		$args  = $this->query_args();
748 762
 		$post = get_post( $post_id );
@@ -763,6 +777,10 @@  discard block
 block discarded – undo
763 777
 		return $this->get_post_by( 'ID', $post->ID, $args['context'] );
764 778
 	}
765 779
 
780
+	/**
781
+	 * @param boolean $delete_featured_image
782
+	 * @param string $featured_image
783
+	 */
766 784
 	protected function parse_and_set_featured_image( $post_id, $delete_featured_image, $featured_image ) {
767 785
 		if ( $delete_featured_image ) {
768 786
 			delete_post_thumbnail( $post_id );
Please login to merge, or discard this patch.
modules/wordads/wordads.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 	/**
47 47
 	 * Convenience function for grabbing options from params->options
48 48
 	 * @param  string $option the option to grab
49
-	 * @param  mixed  $default (optional)
49
+	 * @param  boolean  $default (optional)
50 50
 	 * @return option or $default if not set
51 51
 	 *
52 52
 	 * @since 4.5.0
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
 
396 396
 	/**
397 397
 	 * Check the reasons to bail before we attempt to insert ads.
398
-	 * @return true if we should bail (don't insert ads)
398
+	 * @return boolean if we should bail (don't insert ads)
399 399
 	 *
400 400
 	 * @since 4.5.0
401 401
 	 */
Please login to merge, or discard this patch.
json-endpoints/class.wpcom-json-api-site-user-endpoint.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -63,6 +63,7 @@
 block discarded – undo
63 63
 	/**
64 64
 	 * Updates user data
65 65
 	 *
66
+	 * @param integer $user_id
66 67
 	 * @return array
67 68
 	 */
68 69
 	public function update_user( $user_id, $blog_id ) {
Please login to merge, or discard this patch.
class.jetpack-xmlrpc-server.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -242,6 +242,7 @@
 block discarded – undo
242 242
 	/**
243 243
 	 * Returns the current error as an IXR_Error
244 244
 	 *
245
+	 * @param string $tracks_event_name
245 246
 	 * @return bool|IXR_Error
246 247
 	 */
247 248
 	function error( $error = null, $tracks_event_name = null, $user = null ) {
Please login to merge, or discard this patch.
modules/masterbar/masterbar.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -125,6 +125,9 @@  discard block
 block discarded – undo
125 125
 		wp_enqueue_script( 'a8c_wpcom_masterbar_overrides', $this->wpcom_static_url( '/wp-content/mu-plugins/admin-bar/masterbar-overrides/masterbar.js' ), array( 'jquery' ), JETPACK__VERSION );
126 126
 	}
127 127
 
128
+	/**
129
+	 * @param string $file
130
+	 */
128 131
 	function wpcom_static_url( $file ) {
129 132
 		if ( ! empty( $this->sandbox_url ) ) {
130 133
 			// For testing undeployed changes to remotely enqueued scripts and styles.
@@ -307,6 +310,9 @@  discard block
 block discarded – undo
307 310
 		return $primary_anchor . $secondary_anchor;
308 311
 	}
309 312
 
313
+	/**
314
+	 * @param string $class
315
+	 */
310 316
 	public function create_menu_item_anchor( $class, $url, $label, $id ) {
311 317
 		return '<a href="' . $url . '" class="' . $class . '" id="' . $id . '">' . $label . '</a>';
312 318
 	}
Please login to merge, or discard this patch.