uapte:
This commit is contained in:
parent
58ead645c6
commit
517d9b2110
@ -116,8 +116,8 @@ class OpalEstate_Agency {
|
|||||||
*/
|
*/
|
||||||
public static function get_avatar_url( $userID, $size='thumbnail' ) {
|
public static function get_avatar_url( $userID, $size='thumbnail' ) {
|
||||||
|
|
||||||
$id = get_post_meta( $userID, OPALESTATE_AGENCY_PREFIX . 'avatar_id', true );;
|
$id = get_post_meta( $userID, OPALESTATE_AGENCY_PREFIX . 'avatar_id', true );
|
||||||
$url = wp_get_attachment_image_url( $id, $size );
|
$url = wp_get_attachment_image_url( $id, $size );
|
||||||
|
|
||||||
if( $url ) {
|
if( $url ) {
|
||||||
return $url;
|
return $url;
|
||||||
|
Loading…
Reference in New Issue
Block a user