@@ -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. |
@@ -131,7 +132,7 @@ discard block |
||
131 | 132 | * @param stdClass $new_post_obj Updated post object about to be inserted view REST endpoint. |
132 | 133 | * @param WP_REST_Request $request Request object, possibly containing 'publicize' field {@see add_publicize_rest_fields()}. |
133 | 134 | * |
134 | - * @return WP_Post Returns the original $new_post value unchanged. |
|
135 | + * @return stdClass Returns the original $new_post value unchanged. |
|
135 | 136 | */ |
136 | 137 | public function process_publicize_from_rest( $new_post_obj, $request ) { |
137 | 138 | global $publicize; |