@@ -415,7 +415,7 @@ |
||
| 415 | 415 | * |
| 416 | 416 | * @param array $connections_data |
| 417 | 417 | * |
| 418 | - * @return array { |
|
| 418 | + * @return string { |
|
| 419 | 419 | * Array of content for generating connection form. |
| 420 | 420 | * |
| 421 | 421 | * @type string HTML content of form |
@@ -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; |
@@ -682,6 +682,9 @@ |
||
| 682 | 682 | $this->options_save_other( 'linkedin' ); |
| 683 | 683 | } |
| 684 | 684 | |
| 685 | + /** |
|
| 686 | + * @param string $service_name |
|
| 687 | + */ |
|
| 685 | 688 | function options_save_other( $service_name ) { |
| 686 | 689 | // Nonce check |
| 687 | 690 | check_admin_referer( 'save_' . $service_name . '_token_' . $_REQUEST['connection'] ); |