@@ -31,6 +31,7 @@ discard block |
||
| 31 | 31 | * Set up hooks to extend legacy Publicize behavior. |
| 32 | 32 | * |
| 33 | 33 | * @since 5.9.1 |
| 34 | + * @param Publicize $publicize |
|
| 34 | 35 | */ |
| 35 | 36 | public function __construct( $publicize ) { |
| 36 | 37 | // Do edit page specific setup. |
@@ -56,7 +57,6 @@ discard block |
||
| 56 | 57 | * |
| 57 | 58 | * @since 5.9.1 |
| 58 | 59 | * |
| 59 | - * @param WP_REST_Request $request Request instance from REST call. |
|
| 60 | 60 | * |
| 61 | 61 | * @return string JSON encoded connection list data. |
| 62 | 62 | */ |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | * @param stdClass $new_post_obj Updated post object about to be inserted view REST endpoint. |
| 204 | 204 | * @param WP_REST_Request $request Request object, possibly containing 'publicize' field {@see add_publicize_rest_fields()}. |
| 205 | 205 | * |
| 206 | - * @return WP_Post Returns the original $new_post value unchanged. |
|
| 206 | + * @return stdClass Returns the original $new_post value unchanged. |
|
| 207 | 207 | */ |
| 208 | 208 | public function process_publicize_from_rest( $new_post_obj, $request ) { |
| 209 | 209 | global $publicize; |