Completed
Push — add/publicize-rest-api ( bd8352...d0cf9d )
by Bernhard
28:26 queued 1439:11
created
_inc/lib/class.jetpack-keyring-service-helper.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -100,6 +100,10 @@  discard block
 block discarded – undo
100 100
 		), menu_page_url( 'sharing', false ) );
101 101
 	}
102 102
 
103
+	/**
104
+	 * @param string $service_name
105
+	 * @param string $for
106
+	 */
103 107
 	static function refresh_url( $service_name, $for ) {
104 108
 		return add_query_arg( array(
105 109
 			'action'   => 'request',
@@ -111,6 +115,10 @@  discard block
 block discarded – undo
111 115
 		), admin_url( 'options-general.php?page=sharing' ) );
112 116
 	}
113 117
 
118
+	/**
119
+	 * @param string $service_name
120
+	 * @param string $id
121
+	 */
114 122
 	static function disconnect_url( $service_name, $id ) {
115 123
 		return add_query_arg( array(
116 124
 			'action'   => 'delete',
Please login to merge, or discard this patch.
modules/publicize/ui.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -324,6 +324,9 @@  discard block
 block discarded – undo
324 324
 		</div><?php
325 325
 	}
326 326
 
327
+	/**
328
+	 * @param string $service_name
329
+	 */
327 330
 	public static function options_page_other( $service_name ) {
328 331
 		// Nonce check
329 332
 		check_admin_referer( "options_page_{$service_name}_" . $_REQUEST['connection'] );
@@ -704,7 +707,7 @@  discard block
 block discarded – undo
704 707
 	 *
705 708
 	 * @param array $connections_data
706 709
 	 *
707
-	 * @return array {
710
+	 * @return string {
708 711
 	 *     Array of content for generating connection form.
709 712
 	 *
710 713
 	 *     @type string HTML content of form
Please login to merge, or discard this patch.
modules/publicize/publicize.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1152,7 +1152,7 @@
 block discarded – undo
1152 1152
 	 * @param stdClass        $new_post_obj Updated post object about to be inserted view REST endpoint.
1153 1153
 	 * @param WP_REST_Request $request      Request object, possibly containing 'publicize' field {@see add_publicize_rest_fields()}.
1154 1154
 	 *
1155
-	 * @return WP_Post Returns the original $new_post value unchanged.
1155
+	 * @return stdClass Returns the original $new_post value unchanged.
1156 1156
 	 */
1157 1157
 	public function process_publicize_from_rest( $new_post_obj, $request ) {
1158 1158
 		if ( property_exists( $new_post_obj, 'ID' ) ) {
Please login to merge, or discard this patch.
modules/publicize/rest-api.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,6 @@
 block discarded – undo
51 51
 	 *
52 52
 	 * @since 5.9.1
53 53
 	 *
54
-	 * @param WP_REST_Request $request Request instance from REST call.
55 54
 	 *
56 55
 	 * @return string JSON encoded connection list data.
57 56
 	 */
Please login to merge, or discard this patch.