Skip to content
GitLab
Explore
Sign in
Commits on Source (1)
Update ai-global-activity.php
· 48616644
ale
authored
Oct 12, 2021
48616644
Hide whitespace changes
Inline
Side-by-side
ai-global-activity.php
View file @
48616644
...
...
@@ -78,7 +78,7 @@ function ai_activity_publish_post($post_id) {
$post_excerpt
=
get_the_excerpt
(
$post
);
$post_author
=
apply_filters
(
'the_author'
,
$post
->
post_author
);
$post_date
=
get_the_date
(
'Y-m-d H:i:s'
,
$post
);
$post_thumbnail_url
=
get_the_post_thumbnail_url
(
$post
);
$post_thumbnail_url
=
get_the_post_thumbnail_url
(
$post
,
'thumbnail'
);
// Rewrite false to null in the get_the_post_thumbnail_url() response.
if
(
!
$post_thumbnail_url
)
{
$post_thumbnail_url
=
null
;
...
...