Skip to content

Commit

Permalink
[Authors Plugin] Get full size image in the "/authors/{id}" request
Browse files Browse the repository at this point in the history
Because the medium-sized image is not clear enough in the mobile app
  • Loading branch information
hesyifei committed Jun 11, 2019
1 parent 4b9bd23 commit 71f4e81
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function tsd_authors_plugin_author_info( $request ) {
}
// If the key ends with `Image`
if(preg_match('/Image$/', $key)) {
$value = tsd_authors_plugin_get_image_url_from_id($value, 'medium');
$value = tsd_authors_plugin_get_image_url_from_id($value, 'full');
}
$meta_to_return[$shortKey] = $value;
}
Expand Down

0 comments on commit 71f4e81

Please sign in to comment.