diff --git a/includes/class-simple-local-avatars.php b/includes/class-simple-local-avatars.php index d796379c..09cf948a 100644 --- a/includes/class-simple-local-avatars.php +++ b/includes/class-simple-local-avatars.php @@ -386,7 +386,7 @@ public function get_simple_local_avatar_url( $id_or_email, $size ) { $url = apply_filters( 'pre_simple_local_avatar_url', null, $user_id, $size, $local_avatars ); if ( is_string( $url ) ) { - return $url; + return esc_url( $url ); } // handle "real" media