diff options
author | Yury German <blueknight@gentoo.org> | 2017-03-07 20:49:57 -0500 |
---|---|---|
committer | Yury German <blueknight@gentoo.org> | 2017-03-07 20:49:57 -0500 |
commit | 4aef42856734c8d67b06814ff6c97b101869836b (patch) | |
tree | dd94b6858923fa285673285940bcd74be3bb5eb9 /plugins/jetpack/class.json-api-endpoints.php | |
parent | Update plugin wordpress-mobile-pack 2.2.8 (diff) | |
download | blogs-gentoo-4aef42856734c8d67b06814ff6c97b101869836b.tar.gz blogs-gentoo-4aef42856734c8d67b06814ff6c97b101869836b.tar.bz2 blogs-gentoo-4aef42856734c8d67b06814ff6c97b101869836b.zip |
Jetpack upgrade 4.7
Diffstat (limited to 'plugins/jetpack/class.json-api-endpoints.php')
-rw-r--r-- | plugins/jetpack/class.json-api-endpoints.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/jetpack/class.json-api-endpoints.php b/plugins/jetpack/class.json-api-endpoints.php index 886433f9..faa04abf 100644 --- a/plugins/jetpack/class.json-api-endpoints.php +++ b/plugins/jetpack/class.json-api-endpoints.php @@ -1032,7 +1032,7 @@ abstract class WPCOM_JSON_API_Endpoint { $first_name = ''; $last_name = ''; $URL = $author->comment_author_url; - $avatar_URL = $this->api->get_avatar_url( $author ); + $avatar_URL = get_avatar_url( $author ); $profile_URL = 'https://en.gravatar.com/' . md5( strtolower( trim( $email ) ) ); $nice = ''; $site_id = -1; @@ -1102,7 +1102,7 @@ abstract class WPCOM_JSON_API_Endpoint { $site_id = -1; } - $avatar_URL = $this->api->get_avatar_url( $email ); + $avatar_URL = get_avatar_url( $email ); } $email = $show_email ? (string) $email : false; @@ -1169,7 +1169,7 @@ abstract class WPCOM_JSON_API_Endpoint { $file = basename( wp_get_attachment_url( $media_item->ID ) ); $file_info = pathinfo( $file ); - $ext = $file_info['extension']; + $ext = isset( $file_info['extension'] ) ? $file_info['extension'] : null; $response = array( 'ID' => $media_item->ID, |