|
@@ -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.