projects/packages/post-images/src/class-post-images.php 1 location
|
@@ 549-562 (lines=14) @@
|
| 546 |
|
$post = get_post( $post_id ); |
| 547 |
|
$permalink = get_permalink( $post_id ); |
| 548 |
|
|
| 549 |
|
if ( function_exists( 'wpcom_get_avatar_url' ) ) { |
| 550 |
|
$url = \wpcom_get_avatar_url( $post->post_author, $size, $default, true ); |
| 551 |
|
if ( $url && is_array( $url ) ) { |
| 552 |
|
$url = $url[0]; |
| 553 |
|
} |
| 554 |
|
} else { |
| 555 |
|
$url = get_avatar_url( |
| 556 |
|
$post->post_author, |
| 557 |
|
array( |
| 558 |
|
'size' => $size, |
| 559 |
|
'default' => $default, |
| 560 |
|
) |
| 561 |
|
); |
| 562 |
|
} |
| 563 |
|
|
| 564 |
|
return array( |
| 565 |
|
array( |
projects/plugins/jetpack/class.jetpack-post-images.php 1 location
|
@@ 554-567 (lines=14) @@
|
| 551 |
|
$post = get_post( $post_id ); |
| 552 |
|
$permalink = get_permalink( $post_id ); |
| 553 |
|
|
| 554 |
|
if ( function_exists( 'wpcom_get_avatar_url' ) ) { |
| 555 |
|
$url = wpcom_get_avatar_url( $post->post_author, $size, $default, true ); |
| 556 |
|
if ( $url && is_array( $url ) ) { |
| 557 |
|
$url = $url[0]; |
| 558 |
|
} |
| 559 |
|
} else { |
| 560 |
|
$url = get_avatar_url( |
| 561 |
|
$post->post_author, |
| 562 |
|
array( |
| 563 |
|
'size' => $size, |
| 564 |
|
'default' => $default, |
| 565 |
|
) |
| 566 |
|
); |
| 567 |
|
} |
| 568 |
|
|
| 569 |
|
return array( |
| 570 |
|
array( |