summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/sal/class.json-api-post-base.php')
-rw-r--r--plugins/jetpack/sal/class.json-api-post-base.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/jetpack/sal/class.json-api-post-base.php b/plugins/jetpack/sal/class.json-api-post-base.php
index 4ee02cc1..50e77c19 100644
--- a/plugins/jetpack/sal/class.json-api-post-base.php
+++ b/plugins/jetpack/sal/class.json-api-post-base.php
@@ -182,9 +182,9 @@ abstract class SAL_Post {
public function get_current_user_capabilities() {
return array(
- 'publish_post' => current_user_can( 'publish_post', $this->post ),
- 'delete_post' => current_user_can( 'delete_post', $this->post ),
- 'edit_post' => current_user_can( 'edit_post', $this->post )
+ 'publish_post' => current_user_can( 'publish_post', $this->post->ID ),
+ 'delete_post' => current_user_can( 'delete_post', $this->post->ID ),
+ 'edit_post' => current_user_can( 'edit_post', $this->post->ID )
);
}
@@ -458,7 +458,7 @@ abstract class SAL_Post {
if ( 0 == $this->post->post_author )
return null;
- $show_email = $this->context === 'edit' && current_user_can( 'edit_post', $this->post );
+ $show_email = $this->context === 'edit' && current_user_can( 'edit_post', $this->post->ID );
$user = get_user_by( 'id', $this->post->post_author );
@@ -472,9 +472,9 @@ abstract class SAL_Post {
if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) {
$active_blog = get_active_blog_for_user( $user->ID );
$site_id = $active_blog->blog_id;
- $profile_URL = "http://en.gravatar.com/{$user->user_login}";
+ $profile_URL = "https://en.gravatar.com/{$user->user_login}";
} else {
- $profile_URL = 'http://en.gravatar.com/' . md5( strtolower( trim( $user->user_email ) ) );
+ $profile_URL = 'https://en.gravatar.com/' . md5( strtolower( trim( $user->user_email ) ) );
$site_id = -1;
}