Skip to content

Commit 54978aa

Browse files
committed
Merge branch 'develop' into try/auto-distribute-feature
2 parents 56f4867 + 21fabb3 commit 54978aa

4 files changed

Lines changed: 836 additions & 342 deletions

File tree

includes/classes/API/SubscriptionsController.php

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -281,13 +281,15 @@ public function receive_item( $request ) {
281281
}
282282

283283
wp_update_post(
284-
[
285-
'ID' => $request['post_id'],
286-
'post_title' => $request['post_data']['title'],
287-
'post_content' => $content,
288-
'post_excerpt' => $request['post_data']['excerpt'],
289-
'post_name' => $request['post_data']['slug'],
290-
]
284+
wp_slash(
285+
[
286+
'ID' => $request['post_id'],
287+
'post_title' => $request['post_data']['title'],
288+
'post_content' => $content,
289+
'post_excerpt' => $request['post_data']['excerpt'],
290+
'post_name' => $request['post_data']['slug'],
291+
]
292+
)
291293
);
292294

293295
/**

0 commit comments

Comments
 (0)