Skip to content

Commit 630b2d7

Browse files
committed
Revert "- add functionality"
This reverts commit 1cb7511.
1 parent 1cb7511 commit 630b2d7

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

src/Data/DataSource.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -352,13 +352,7 @@ public static function resolve_avatar( int $user_id, array $args ) {
352352
return null;
353353
}
354354

355-
$avatar = new Avatar( $avatar );
356-
357-
if ( 'private' === $avatar->get_visibility() ) {
358-
return null;
359-
}
360-
361-
return $avatar;
355+
return new Avatar( $avatar );
362356
}
363357

364358
/**

src/Model/Avatar.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,6 @@ public function __construct( array $avatar ) {
3737
parent::__construct();
3838
}
3939

40-
/**
41-
* @return bool
42-
*/
43-
protected function is_private() {
44-
$show_avatars = get_option( 'show_avatars' );
45-
return ! (bool) $show_avatars;
46-
}
47-
4840
/**
4941
* {@inheritDoc}
5042
*/

0 commit comments

Comments
 (0)