Skip to content
Browse files

comments

  • Loading branch information...
1 parent 749e3e3 commit d3bd625c1a49a7bff3be44ad469baf0f2919cec9 @alexkingorg alexkingorg committed Apr 29, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/social/controller/broadcast.php
View
4 lib/social/controller/broadcast.php
@@ -27,6 +27,7 @@ public function action_options() {
$accounts_selected = false;
if ($this->request->post('social_action') !== null) {
+ // this is coming from $_POST unmodified, WP normalizes with slashes - strip them.
$service_accounts = stripslashes_deep($this->request->post('social_accounts'));
$account_content = stripslashes_deep($this->request->post('social_account_content'));
@@ -55,7 +56,6 @@ public function action_options() {
}
$account_content_meta[$key][$account_id[0]] = $account_content[$key][$account_id[0]];
-// TODO
$account_service_meta[$key][$account_id[0]] = $service->get_broadcast_extras($account_id[0], $post);
}
}
@@ -155,7 +155,7 @@ public function action_options() {
}
}
- // Store the content
+ // Store the content, add slashes since update_post_meta() strips them
update_post_meta($post->ID, '_social_broadcast_content', addslashes_deep($account_content_meta));
update_post_meta($post->ID, '_social_broadcast_meta', addslashes_deep($account_service_meta));
update_post_meta($post->ID, '_social_broadcast_accounts', addslashes_deep($broadcast_accounts));

0 comments on commit d3bd625

Please sign in to comment.
Something went wrong with that request. Please try again.