updated plugin Simple Local Avatars version 2.7.8

This commit is contained in:
2024-05-09 15:26:55 +00:00
committed by Gitium
parent 496ccfac3d
commit 62f3186aef
18 changed files with 295 additions and 80 deletions

View File

@ -276,7 +276,7 @@ class Comment {
}
// check for local comment
if ( \wp_parse_url( \site_url(), \PHP_URL_HOST ) === \wp_parse_url( $url, \PHP_URL_HOST ) ) {
if ( \wp_parse_url( \home_url(), \PHP_URL_HOST ) === \wp_parse_url( $url, \PHP_URL_HOST ) ) {
$query = \wp_parse_url( $url, \PHP_URL_QUERY );
if ( $query ) {
@ -379,12 +379,7 @@ class Comment {
}
// generate URI based on comment ID
return \add_query_arg(
array(
'c' => $comment->comment_ID,
),
\trailingslashit( site_url() )
);
return \add_query_arg( 'c', $comment->comment_ID, \home_url() );
}
/**