-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d75aa4a
commit 767f7b2
Showing
1 changed file
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -120,10 +120,13 @@ function get_avatar_img( $size = 80 ) { | |
*/ | ||
function get_avatar_src( $size = 80 ) { | ||
$img = $this->get_avatar_img( $size ); | ||
|
||
if ( ! $img ) { | ||
return false; | ||
} | ||
assert( preg_match( '/src=([\'"])(.*?)\1/', $img, $matches ) ); | ||
|
||
preg_match( '/src=([\'"])(.*?)\1/', $img, $matches ); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
frankiejarrett
Author
Contributor
|
||
|
||
$src = html_entity_decode( $matches[2] ); | ||
|
||
return $src; | ||
|
@fjarrett I think we should check the result of this one, just in case the value is filtered/malformed by other plugins.