Skip to content

Commit 14a6871

Browse files
committed
Slash post data when receive a subscription update
1 parent 8e3dc7a commit 14a6871

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

includes/classes/API/SubscriptionsController.php

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

267267
wp_update_post(
268-
[
269-
'ID' => $request['post_id'],
270-
'post_title' => $request['post_data']['title'],
271-
'post_content' => $content,
272-
'post_excerpt' => $request['post_data']['excerpt'],
273-
'post_name' => $request['post_data']['slug'],
274-
]
268+
wp_slash(
269+
[
270+
'ID' => $request['post_id'],
271+
'post_title' => $request['post_data']['title'],
272+
'post_content' => $content,
273+
'post_excerpt' => $request['post_data']['excerpt'],
274+
'post_name' => $request['post_data']['slug'],
275+
]
276+
)
275277
);
276278

277279
/**

0 commit comments

Comments
 (0)