@@ -346,6 +346,9 @@ discard block |
||
346 | 346 | </div><?php |
347 | 347 | } |
348 | 348 | |
349 | + /** |
|
350 | + * @param string $service_name |
|
351 | + */ |
|
349 | 352 | public static function options_page_other( $service_name ) { |
350 | 353 | // Nonce check |
351 | 354 | check_admin_referer( "options_page_{$service_name}_" . $_REQUEST['connection'] ); |
@@ -769,7 +772,7 @@ discard block |
||
769 | 772 | * |
770 | 773 | * @param array $connections_data |
771 | 774 | * |
772 | - * @return array { |
|
775 | + * @return string { |
|
773 | 776 | * Array of content for generating connection form. |
774 | 777 | * |
775 | 778 | * @type string HTML content of form |
@@ -872,6 +875,9 @@ discard block |
||
872 | 875 | return ob_get_clean(); |
873 | 876 | } |
874 | 877 | |
878 | + /** |
|
879 | + * @return string |
|
880 | + */ |
|
875 | 881 | private function google_plus_shut_down_notice() { |
876 | 882 | return wp_kses( |
877 | 883 | sprintf( |
@@ -135,6 +135,9 @@ discard block |
||
135 | 135 | self::set_is_sending( null ); |
136 | 136 | } |
137 | 137 | |
138 | + /** |
|
139 | + * @param boolean|null $is_importing |
|
140 | + */ |
|
138 | 141 | static function set_importing( $is_importing ) { |
139 | 142 | // set to NULL to revert to WP_IMPORTING, the standard behavior |
140 | 143 | self::$is_importing = $is_importing; |
@@ -165,6 +168,9 @@ discard block |
||
165 | 168 | return (bool) self::$is_syncing || ( defined( 'REST_API_REQUEST' ) && REST_API_REQUEST ); |
166 | 169 | } |
167 | 170 | |
171 | + /** |
|
172 | + * @param boolean|null $is_syncing |
|
173 | + */ |
|
168 | 174 | static function set_is_syncing( $is_syncing ) { |
169 | 175 | self::$is_syncing = $is_syncing; |
170 | 176 | } |
@@ -173,6 +179,9 @@ discard block |
||
173 | 179 | return (bool) self::$is_sending; |
174 | 180 | } |
175 | 181 | |
182 | + /** |
|
183 | + * @param boolean|null $is_sending |
|
184 | + */ |
|
176 | 185 | static function set_is_sending( $is_sending ) { |
177 | 186 | self::$is_sending = $is_sending; |
178 | 187 | } |
@@ -213,7 +213,6 @@ discard block |
||
213 | 213 | /** |
214 | 214 | * Inject image sizes to Jetpack REST API responses. This wraps the filter_photon_norezise_maybe_inject_sizes function. |
215 | 215 | * |
216 | - * @param array $data Attachment sizes data. |
|
217 | 216 | * @param int $attachment_id Attachment's post ID. |
218 | 217 | * |
219 | 218 | * @return array Attachment sizes array. |
@@ -1257,7 +1256,7 @@ discard block |
||
1257 | 1256 | * after ourselves without breaking anyone else's filters. |
1258 | 1257 | * |
1259 | 1258 | * @internal |
1260 | - * @return true |
|
1259 | + * @return boolean |
|
1261 | 1260 | */ |
1262 | 1261 | public function _override_image_downsize_in_rest_edit_context() { |
1263 | 1262 | return true; |