Skip to content

Commit

Permalink
Fix various minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
atanas-dev committed Nov 30, 2018
1 parent b557b7e commit 5abbe95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Avatar/Avatar.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

namespace WPEmergeTheme\Avatar;

use WP_Comment;

class Avatar {
/**
* Default avatar attachment id.
Expand Down Expand Up @@ -161,7 +163,7 @@ public function filterAvatar( $url, $id_or_email, $args ) {
$id = $this->idOrEmailToId( $id_or_email );

if ( is_numeric( $id ) ) {
$filtered_url = $this->getAvatarUrl( $id, $this->getSize( $args ) );
$filtered_url = $this->getAvatarUrl( (int) $id, $this->getSize( $args ) );
if ( $filtered_url !== null ) {
$url = $filtered_url;
}
Expand Down
1 change: 1 addition & 0 deletions src/Theme/Theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace WPEmergeTheme\Theme;

use Exception;
use WPEmerge;
use WPEmerge\Facades\Framework;
use WPEmergeTheme\Assets\AssetsServiceProvider;
Expand Down

0 comments on commit 5abbe95

Please sign in to comment.