diff --git a/social-twitter.php b/social-twitter.php
index f9487a1f..e7da5782 100755
--- a/social-twitter.php
+++ b/social-twitter.php
@@ -87,7 +87,7 @@ public static function comments_array(array $comments, $post_id) {
$broadcasted_social_ids[] = $id;
// if we don't have a message saved for a tweet, try to get it so that we can use it next time
if (empty($data['message'])) {
- $url = wp_nonce_url(home_url('index.php?social_controller=aggregation&social_action=retrieve_twitter_content&broadcasted_id='.$id.'&post_id='.$post_id), 'retrieve_twitter_content');
+ $url = Social::wp39_nonce_url(home_url('index.php?social_controller=aggregation&social_action=retrieve_twitter_content&broadcasted_id='.$id.'&post_id='.$post_id), 'retrieve_twitter_content');
wp_remote_get(str_replace('&', '&', $url), array(
'timeout' => 0.01,
'blocking' => false,
diff --git a/social.php b/social.php
index f71cf445..faecb7ed 100755
--- a/social.php
+++ b/social.php
@@ -1722,7 +1722,7 @@ public function post_row_actions(array $actions, $post) {
&& $post->post_status == 'publish'
&& Social::option('aggregate_comments'))
{
- $actions['social_aggregation'] = sprintf(__('Social Comments', 'social'), esc_url(wp_nonce_url(admin_url('options-general.php?social_controller=aggregation&social_action=run&post_id='.$post->ID), 'run')), $post->ID).
+ $actions['social_aggregation'] = sprintf(__('Social Comments', 'social'), esc_url(Social::wp39_nonce_url(admin_url('options-general.php?social_controller=aggregation&social_action=run&post_id='.$post->ID), 'run')), $post->ID).
'';
}
return $actions;
@@ -1758,13 +1758,13 @@ public function admin_bar_menu() {
)',
- 'href' => esc_url(wp_nonce_url(admin_url('options-general.php?social_controller=aggregation&social_action=run&post_id='.$current_object->ID), 'run')),
+ 'href' => esc_url(Social::wp39_nonce_url(admin_url('options-general.php?social_controller=aggregation&social_action=run&post_id='.$current_object->ID), 'run')),
));
$wp_admin_bar->add_menu(array(
'parent' => 'comments',
'id' => 'social-add-tweet-by-url',
'title' => __('Add Tweet by URL', 'social')
- .'